first try
This commit is contained in:
parent
3aa4a2203e
commit
d6d76baf89
2 changed files with 41 additions and 0 deletions
38
cloud-init/cloud-init.txt
Normal file
38
cloud-init/cloud-init.txt
Normal file
|
@ -0,0 +1,38 @@
|
|||
#cloud-config
|
||||
|
||||
fqdn: 🧂
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages:
|
||||
- python-pygit2
|
||||
|
||||
runcmd:
|
||||
- mkdir /run/salt-bootstrap
|
||||
- curl -o /run/salt-bootstrap/bootstrap-salt.sh -L https://bootstrap.saltproject.io
|
||||
- chmod +x /run/salt-bootstrap/bootstrap-salt.sh
|
||||
- /run/salt-bootstrap/bootstrap-salt.sh -MP
|
||||
|
||||
ssh_pwauth: false
|
||||
users:
|
||||
- default
|
||||
- name: salt
|
||||
ssh_authorized_keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9YAnzUrXGVCJOc73cqswYEeIRou8Y/I2gDOGeUouZv flipdot
|
||||
sudo: true
|
||||
write_files:
|
||||
path: /etc/salt/master
|
||||
permissions: '0660'
|
||||
- content: |
|
||||
# salt master config by cloud-init
|
||||
fileserver_backend:
|
||||
- gitfs
|
||||
gitfs_remotes:
|
||||
- https://github.com/saltstack-formulas/salt-formula.git
|
||||
gitfs_root: salt
|
||||
|
||||
path: /etc/salt/minion
|
||||
permissions: '0660'
|
||||
- content: |
|
||||
# salt minion config by cloud-init
|
||||
file_client: local
|
||||
|
3
salt/top.sls
Normal file
3
salt/top.sls
Normal file
|
@ -0,0 +1,3 @@
|
|||
base:
|
||||
'*':
|
||||
|
Loading…
Reference in a new issue