-
Notifications
You must be signed in to change notification settings - Fork 6
/
sagenv-stack-cce-create-secrets.yaml
48 lines (39 loc) · 1.4 KB
/
sagenv-stack-cce-create-secrets.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- import_playbook: sagenv-common-webmethods-load-vars.yaml
vars:
cce_provisioning_command_central_hosts: localhost
tags:
- always
- hosts: localhost
vars_prompt:
- name: "cce_password"
prompt: "Enter the password for command central ui"
private: yes
- name: "cce_repo_username"
prompt: "Enter the product/fix remote repo authentication username"
private: no
- name: "cce_repo_password"
prompt: "Enter the product/fix remote repo authentication password"
private: yes
- name: "cce_ssh_key_user"
prompt: "Enter the ssh user that CCE will use to push artifacts"
private: no
- name: "cce_ssh_key_filename"
prompt: "Enter the ssh key that CCE will use to push artifacts"
private: no
- name: "cce_ssh_key_password"
prompt: "Enter the ssh key password that CCE will use to push artifacts"
private: yes
tasks:
- name: Write params to secret
blockinfile:
path: "{{ cce_provisioning_secrets_localpath }}"
create: yes
mode: 0600
block: |
export CC_PASSWORD={{ cce_password }}
export CC_SAG_REPO_USR={{ cce_repo_username }}
export CC_SAG_REPO_PWD={{ cce_repo_password }}
export CC_SSH_KEY_FILENAME={{ cce_ssh_key_filename }}
export CC_SSH_KEY_PWD={{ cce_ssh_key_password }}
export CC_SSH_USER={{ cce_ssh_key_user }}