@@ -7,7 +7,7 @@ UBUNTU_CODENAME=$(grep -F VERSION_CODENAME /etc/os-release | cut -d= -f2)
77
88apt-get update
99apt-get dist-upgrade -y
10- apt-get install wget gnupg -y
10+ apt-get install wget -y
1111
1212wget -qO /usr/share/keyrings/salt-archive-keyring.gpg " https://repo.saltproject.io/salt/py3/ubuntu/${UBUNTU_VERSION} /amd64/latest/salt-archive-keyring.gpg"
1313
@@ -21,21 +21,25 @@ apt-get update
2121apt-get install salt-master salt-minion -y
2222
2323cat << EOF > /etc/salt/master
24- fileserver_backend: git
24+ fileserver_backend:
25+ - git
26+
2527gitfs_provider: gitpython
26- gitfs_saltenv_whitelist: base
2728gitfs_update_interval: 80
2829
30+ gitfs_saltenv_whitelist:
31+ - base
32+
2933gitfs_remotes:
30- - https://github.com/saltstack-formulas/salt-formula.git
31- - https://github.com/saltstack-formulas/cron-formula.git
32- - https://github.com/saltstack-formulas/nginx-formula.git
33- - https://github.com/saltstack-formulas/php-formula.git
34- - https://github.com/saltstack-formulas/supervisor-formula.git
35- - https://github.com/saltstack-formulas/users-formula.git
36- - https://github.com/saltstack-formulas/logrotate-formula.git
37- - https://github.com/opensourcewebsite-org/osw-devops.git:
38- - root: salt
34+ - https://github.com/saltstack-formulas/salt-formula.git
35+ - https://github.com/saltstack-formulas/cron-formula.git
36+ - https://github.com/saltstack-formulas/nginx-formula.git
37+ - https://github.com/saltstack-formulas/php-formula.git
38+ - https://github.com/saltstack-formulas/supervisor-formula.git
39+ - https://github.com/saltstack-formulas/users-formula.git
40+ - https://github.com/saltstack-formulas/logrotate-formula.git
41+ - https://github.com/opensourcewebsite-org/osw-devops.git:
42+ - root: salt
3943
4044pillarenv_from_saltenv: True
4145git_pillar_root: pillar
@@ -44,7 +48,7 @@ ext_pillar:
4448 - https://github.com/opensourcewebsite-org/osw-devops.git
4549EOF
4650
47- salt-pip install -y GitPython
51+ salt-pip install GitPython pygit2
4852
4953systemctl restart salt-master
5054
0 commit comments