-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpillar.example
More file actions
34 lines (34 loc) · 1.35 KB
/
pillar.example
File metadata and controls
34 lines (34 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
app:
static:
apps:
salt-ssh-deploy:
user: __APP_NAME__
group: __APP_NAME__
groups:
- docker
pass: '!'
app_root: /opt/__APP_NAME__
shell: /bin/bash
sudo_rules:
gitlab-runner:
- 'ALL=(ALL) NOPASSWD: /opt/salt-ssh-deploy/src/nodegroup_app_docker_deploy_only_image.sh'
ssh_keys:
- file: id_salt_ssh_deploy_dev
priv: |
-----BEGIN OPENSSH PRIVATE KEY-----
xxx
-----END OPENSSH PRIVATE KEY-----
pub: ssh-ed25519 AAAAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx salt-ssh-deploy@example.com
source:
git: https://github.com/microdevops-com/salt-ssh-deploy.git
target: /opt/__APP_NAME__/src
files_contents:
- path: /opt/__APP_NAME__/.env
mode: 0600
contents: |
export SALT_REPO_IMAGE=gitlab.example.com:5001/example/salt:master
export SALT_REPO_REGISTRY=gitlab.example.com:5001
export SALT_REPO_KEY_USER=salt-ssh-deploy
export SALT_REPO_KEY_TOKEN=xxxxxxxxxxxxxxxx
export SALTSSH_ROOT_ED25519_PRIV_FILE=/opt/__APP_NAME__/.ssh/id_salt_ssh_deploy_dev
export SALTSSH_ROOT_ED25519_PUB_FILE=/opt/__APP_NAME__/.ssh/id_salt_ssh_deploy_dev.pub