Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar committed Dec 9, 2024
1 parent 6330b3c commit 2bbf386
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 14 deletions.
24 changes: 24 additions & 0 deletions .ibm/pipelines/get_aap_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,27 @@
headers:
Authorization: "Bearer {{ access_token }}"
dest: "{{ download_path }}"

- name: Setup Ansible Backstage Plugins
hosts: localhost
vars:
ansible_backstage_plugins_local_dir: "~/plugins"
ansible_backstage_bundle: "/tmp//tmp/ansible-automation-platform-setup-bundle.tar.gz"

tasks:
- name: Create Plugins Directory
file:
path: "{{ ansible_backstage_plugins_local_dir }}"
state: directory
mode: '0755'

- name: Set Dynamic Plugin Root Directory
set_fact:
dynamic_plugin_root_dir: "{{ ansible_backstage_plugins_local_dir }}"

- name: Extract Ansible Backstage Bundle
unarchive:
src: "{{ ansible_backstage_bundle }}"
dest: "{{ dynamic_plugin_root_dir }}"
excludes: "*code*"
remote_src: yes
15 changes: 15 additions & 0 deletions .ibm/pipelines/jobs/ocp-v4-16.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
#!/bin/sh


install_ansible(){
if [[ -x "$(command -v ansible)" ]]; then
echo "Ansible is already installed."
else
echo "Installing Ansible client"
apt install ansible -y
echo "Ansible client installed successfully."
fi
}

handle_ocp_4_16() {

install_ansible
ansible --version

K8S_CLUSTER_URL=$(cat /tmp/secrets/RHDH_OS_1_CLUSTER_URL)
K8S_CLUSTER_TOKEN=$(cat /tmp/secrets/RHDH_OS_1_CLUSTER_TOKEN)

Expand Down
14 changes: 0 additions & 14 deletions .ibm/pipelines/kubernetes-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ install_helm() {
fi
}

install_ansible(){
if [[ -x "$(command -v ansible)" ]]; then
echo "Ansible is already installed."
else
echo "Installing Ansible client"
apt install ansible -y
echo "Ansible client installed successfully."
fi
}

install_ansible
ansible --version


install_helm

# check installed helm version
Expand Down

0 comments on commit 2bbf386

Please sign in to comment.