mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-11-23 05:52:19 +00:00
clean up acg content
future experimentation will occur within the existing structure
This commit is contained in:
parent
5c10e67a2b
commit
694561cd8d
7 changed files with 0 additions and 71 deletions
40
Vagrantfile
vendored
40
Vagrantfile
vendored
|
@ -130,46 +130,6 @@ grains:
|
|||
roles:
|
||||
- saltlab
|
||||
- web
|
||||
EOF
|
||||
systemctl restart salt-minion
|
||||
SHELL
|
||||
end
|
||||
config.vm.define "app01" do |app01|
|
||||
app01.vm.box = "peru/ubuntu-20.04-server-amd64"
|
||||
app01.vm.hostname = "app01"
|
||||
app01.vm.network "private_network", ip: "192.168.100.131"
|
||||
app01.vm.provision "shell", inline: <<-SHELL
|
||||
apt-get update
|
||||
apt-get install curl -y
|
||||
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
|
||||
sh bootstrap-salt.sh -A 192.168.100.120 -U
|
||||
cat << EOF > /etc/salt/minion.d/grains.conf
|
||||
grains:
|
||||
roles:
|
||||
- acglab
|
||||
EOF
|
||||
systemctl restart salt-minion
|
||||
SHELL
|
||||
end
|
||||
config.vm.define "db-users" do |dbusers|
|
||||
dbusers.vm.box = "generic/rocky9"
|
||||
dbusers.vm.hostname = "db-users"
|
||||
dbusers.vm.network "private_network", ip: "192.168.100.132"
|
||||
dbusers.vm.provision "shell", inline: <<-SHELL
|
||||
echo -n "> Waiting for network..."
|
||||
while ! host bootstrap.saltproject.io >/dev/null; do
|
||||
echo -n "."
|
||||
sleep 1
|
||||
done
|
||||
echo "Proceeding!"
|
||||
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
|
||||
# workaround for EL > 9 (https://github.com/saltstack/salt-bootstrap/issues/1903)
|
||||
sh bootstrap-salt.sh -A 192.168.100.120 -U -P -x python3 onedir
|
||||
systemctl enable salt-minion
|
||||
cat << EOF > /etc/salt/minion.d/grains.conf
|
||||
grains:
|
||||
roles:
|
||||
- acglab
|
||||
EOF
|
||||
systemctl restart salt-minion
|
||||
SHELL
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
acg:
|
||||
'os:Ubuntu':
|
||||
- match: grain
|
||||
- users
|
|
@ -1,3 +0,0 @@
|
|||
create_group_qa:
|
||||
group.present:
|
||||
- name: qa
|
|
@ -1,3 +0,0 @@
|
|||
include:
|
||||
- users.groups
|
||||
- users.user
|
|
@ -1,8 +0,0 @@
|
|||
{% set users = salt['grains.filter_by']({
|
||||
'Debian': {
|
||||
'sudo_group': 'sudo',
|
||||
},
|
||||
'RedHat': {
|
||||
'sudo_group': 'wheel',
|
||||
},
|
||||
}) %}
|
|
@ -1,13 +0,0 @@
|
|||
{% from "users/map.jinja" import users with context %}
|
||||
|
||||
create_user_jbyers:
|
||||
user.present:
|
||||
- name: jbyers
|
||||
- fullname: John Byers
|
||||
- shell: /bin/bash
|
||||
- home: /home/jbyers
|
||||
- groups:
|
||||
- {{ users.sudo_group }}
|
||||
- qa
|
||||
- require:
|
||||
- group: qa
|
Loading…
Reference in a new issue