Skip to content
Snippets Groups Projects
Verified Commit a70b64b7 authored by Varac's avatar Varac
Browse files

Split control setup tasks into seperate ansible tasks

Closes #21
parent c820fe74
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@
with_items:
- '/root/.bashrc_oas'
- '/root/.bash_aliases_oas'
become: true
- name: Restore original .bashrc
blockinfile:
......
......@@ -15,14 +15,47 @@
rke_ssh_agent_auth: "false"
become: true
- name: Run setup program in control image
shell: docker run --rm -i \
--hostname=control \
-v /oas:/oas \
-v /oas/control/local:/control/local \
docker.greenhost.net/openappstack/bootstrap/oas-control \
/usr/local/bin/control setup
become: true
- name: Create /oas/config/ssh_known_hosts
lineinfile:
dest: /oas/config/ssh_known_hosts
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -trsa ' + ip_address) }}"
- name: Build Cluster
command: 'oas_control /usr/local/bin/control buildCluster'
register: buildCluster
- debug: var=buildCluster.stdout
- name: Install Tiller
command: 'oas_control /usr/local/bin/control installTiller'
register: installTiller
- debug: var=installTiller.stdout
- name: Create Storage
command: 'oas_control /usr/local/bin/control createStorage'
register: createStorage
- debug: var=createStorage.stdout
- name: Clone/update openappstack git repos
command: 'oas_control /usr/local/bin/control getRepos'
register: getRepos
- debug: var=getRepos.stdout
- name: Configure Keycloak
command: 'oas_control /usr/local/bin/control configureKeycloak'
register: configureKeycloak
- debug: var=configureKeycloak.stdout
- name: Touch config file locations
command: 'oas_control /usr/local/bin/control configFiles'
register: configFiles
- debug: var=configFiles.stdout
- name: Apply helmfiles
command: 'oas_control /usr/local/bin/control applyHelmfiles'
register: applyHelmfiles
- debug: var=applyHelmfiles.stdout
- name: Fetch /oas/logs/rke.log from cluster
fetch:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment