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

Remove obsolete files and resourced in get_control role

parent 0b305fe1
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# Run non-interactive oas-control container, used for bootstrapping with ansible
# but can also be used to run oas-control binaries from the host, i.e.
#
# oas_control helm version
docker run --rm -i \
--hostname=control \
-e KEYCLOAK_PASSWORD="$KEYCLOAK_PASSWORD" \
-v /oas:/oas \
-v /oas/control/local:/control/local \
-v /oas/config/ssh_known_hosts:/etc/ssh/ssh_known_hosts \
docker.greenhost.net/openappstack/bootstrap/oas-control $@
#!/bin/sh
# Run an interactive bash shell on the oas-control container
docker run --rm -it \
--hostname=control \
-v /oas:/oas \
-v /oas/control/local:/control/local \
-v /oas/config/ssh_known_hosts:/etc/ssh/ssh_known_hosts \
docker.greenhost.net/openappstack/bootstrap/oas-control \
/bin/bash
......@@ -17,12 +17,7 @@
state: directory
become: true
- name: Store external ip on the node itself
copy:
content: "{{ ip_address }}"
dest: "{{ configuration_directory }}/ip"
- name: Generate SSH keys
- name: Generate SSH keys for rke
shell: ssh-keygen -f {{ configuration_directory }}/ssh_key -C "oas-control@${hostname}" -q -N ""
args:
creates: "{{ configuration_directory }}/ssh_key"
......@@ -41,16 +36,10 @@
comment: "OpenAppStack control"
become: true
- name: Install python docker module
apt:
name: "python3-docker"
become: true
- name: Get control docker image
docker_image:
name: "docker.greenhost.net/openappstack/bootstrap/oas-control"
force: true
become: true
- name: Store external ip on the node itself
copy:
content: "{{ ip_address }}"
dest: "{{ configuration_directory }}/ip"
- name: Remove old files from previous deploys
file:
......@@ -65,15 +54,15 @@
blockinfile:
path: "/root/.bashrc"
state: absent
create: true
block: |
# Source Openappstack addtions from .bashrc_oas
. /root/.bashrc_oas
- name: Deploy oas_control and oas_control scripts
copy:
dest: '/usr/local/bin/'
src: '{{ item }}'
mode: '0755'
- name: Remove old oas_control and oas_control scripts
file:
state: absent
path: '/usr/local/bin/{{ item }}'
with_items:
- 'oas_control'
- 'oas_controlshell'
......
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