Skip to content

Commit f368d57

Browse files
Merge pull request #44 from A1EF/bugfixes
Fix config errors in `install.sh`
2 parents 30654d2 + 216b0f7 commit f368d57

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

install.sh

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ UBUNTU_CODENAME=$(grep -F VERSION_CODENAME /etc/os-release | cut -d= -f2)
77

88
apt-get update
99
apt-get dist-upgrade -y
10-
apt-get install wget gnupg -y
10+
apt-get install wget -y
1111

1212
wget -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
2121
apt-get install salt-master salt-minion -y
2222

2323
cat <<EOF > /etc/salt/master
24-
fileserver_backend: git
24+
fileserver_backend:
25+
- git
26+
2527
gitfs_provider: gitpython
26-
gitfs_saltenv_whitelist: base
2728
gitfs_update_interval: 80
2829
30+
gitfs_saltenv_whitelist:
31+
- base
32+
2933
gitfs_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
4044
pillarenv_from_saltenv: True
4145
git_pillar_root: pillar
@@ -44,7 +48,7 @@ ext_pillar:
4448
- https://github.com/opensourcewebsite-org/osw-devops.git
4549
EOF
4650

47-
salt-pip install -y GitPython
51+
salt-pip install GitPython pygit2
4852

4953
systemctl restart salt-master
5054

pillar/prod/salt.sls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ salt:
4242
top_file_merging_strategy: merge
4343
gitfs_provider: gitpython
4444
git_pillar_provider: gitpython
45-
gitfs_saltenv_whitelist: base
45+
gitfs_saltenv_whitelist:
46+
- base
4647
git_pillar_env: base
4748
git_pillar_root: pillar
4849
gitfs_update_interval: 63072000

0 commit comments

Comments
 (0)