Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ UBUNTU_CODENAME=$(grep -F VERSION_CODENAME /etc/os-release | cut -d= -f2)

apt-get update
apt-get dist-upgrade -y
apt-get install wget gnupg -y
apt-get install wget -y

wget -qO /usr/share/keyrings/salt-archive-keyring.gpg "https://repo.saltproject.io/salt/py3/ubuntu/${UBUNTU_VERSION}/amd64/latest/salt-archive-keyring.gpg"

Expand All @@ -21,21 +21,25 @@ apt-get update
apt-get install salt-master salt-minion -y

cat <<EOF > /etc/salt/master
fileserver_backend: git
fileserver_backend:
- git

gitfs_provider: gitpython
gitfs_saltenv_whitelist: base
gitfs_update_interval: 80

gitfs_saltenv_whitelist:
- base

gitfs_remotes:
- https://github.com/saltstack-formulas/salt-formula.git
- https://github.com/saltstack-formulas/cron-formula.git
- https://github.com/saltstack-formulas/nginx-formula.git
- https://github.com/saltstack-formulas/php-formula.git
- https://github.com/saltstack-formulas/supervisor-formula.git
- https://github.com/saltstack-formulas/users-formula.git
- https://github.com/saltstack-formulas/logrotate-formula.git
- https://github.com/opensourcewebsite-org/osw-devops.git:
- root: salt
- https://github.com/saltstack-formulas/salt-formula.git
- https://github.com/saltstack-formulas/cron-formula.git
- https://github.com/saltstack-formulas/nginx-formula.git
- https://github.com/saltstack-formulas/php-formula.git
- https://github.com/saltstack-formulas/supervisor-formula.git
- https://github.com/saltstack-formulas/users-formula.git
- https://github.com/saltstack-formulas/logrotate-formula.git
- https://github.com/opensourcewebsite-org/osw-devops.git:
- root: salt

pillarenv_from_saltenv: True
git_pillar_root: pillar
Expand All @@ -44,7 +48,7 @@ ext_pillar:
- https://github.com/opensourcewebsite-org/osw-devops.git
EOF

salt-pip install -y GitPython
salt-pip install GitPython pygit2

systemctl restart salt-master

Expand Down
3 changes: 2 additions & 1 deletion pillar/prod/salt.sls
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ salt:
top_file_merging_strategy: merge
gitfs_provider: gitpython
git_pillar_provider: gitpython
gitfs_saltenv_whitelist: base
gitfs_saltenv_whitelist:
- base
git_pillar_env: base
git_pillar_root: pillar
gitfs_update_interval: 63072000
Expand Down