- sudo ./make_openshift_cluster.sh
- sed -i.bak 's/^ose.*//g' ~/.ssh/known_hosts
- ./create_admin_inventory.sh
- ansible-playbook -v -i inventory.admin prepare_vms.yml
- ./run_os_ansible.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ANSIBLE_ASK_PASS=False \ | |
ANSIBLE_HOST_KEY_CHECKING=False \ | |
PROJECT_UPDATE_ID=23 \ | |
CELERY_LOG_REDIRECT_LEVEL=WARNING \ | |
USER=awx \ | |
ANSIBLE_BECOME_ASK_PASS=False \ | |
ANSIBLE_VENV_PATH=/var/lib/awx/venv/ansible \ | |
ANSIBLE_CALLBACK_PLUGINS="/var/lib/awx/venv/awx/lib/python2.7/site-packages/awx/plugins/callback" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import glob | |
import os | |
import shutil | |
import subprocess | |
import sys | |
import tempfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# https://kb.vmware.com/s/article/1541 -- UUIDs | |
# https://kb.vmware.com/s/article/1000936 | |
# http://www.vmwareblog.org/clone-vms-vmware-vcenter-unavailable/ | |
# https://tylermade.net/2017/01/31/cloning-vms-in-vmware-vsphere-esxi-without-vcenter-the-right-way/ | |
# https://nchrissos.wordpress.com/2014/03/05/clone-a-vmwares-vm-without-vcenter-in-esxi-5-x-by-commands-the-official-way/ | |
import os | |
import paramiko |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 - name: Download plugin | |
13 get_url: | |
14 url: "{{ item.url }}" | |
15 dest: "{{ redmine_home }}/plugins/" | |
18 when: plugin_directory_stat.stat.exists == False | |
19 register: plugin_download | |
20 become: true | |
21 become_user: redmine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: el7host | |
connection: local | |
gather_facts: False | |
tasks: | |
- name: set a non-cacheable fact | |
set_fact: | |
foo: 1 | |
- name: set a cacheable fact | |
set_fact: | |
c_foo: 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAYBOOK: site.yml ******************************************************************************* | |
1 plays in site.yml | |
PLAY [all] *************************************************************************************** | |
META: ran handlers | |
TASK [debug] ************************************************************************************* | |
task path: /home/jtanner/workspace/issues/AP-HOSTVAR_LOOKUP/site.yml:5 | |
ok: [el6host] => { | |
"failed": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat test_sprocket.py | |
#!/usr/bin/python | |
# Example reference test ... | |
# https://github.com/ansible/ansible/blob/devel/test/units/modules/net_tools/test_nmcli.py | |
# Pytest fixtures ... | |
# http://pythontesting.net/framework/pytest/pytest-fixtures-nuts-bolts/ | |
import pytest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/runner/lib/target.py b/test/runner/lib/target.py | |
index 3038eda..760303f 100644 | |
--- a/test/runner/lib/target.py | |
+++ b/test/runner/lib/target.py | |
@@ -291,7 +291,7 @@ def walk_test_targets(path=None, module_path=None, extensions=None, | |
:type extra_dirs: tuple[str] | None | |
:rtype: collections.Iterable[TestTarget] | |
""" | |
- for root, _, file_names in os.walk(path or '.', topdown=False): | |
+ for root, _, file_names in os.walk(path or '.', topdown=False, followlinks=True): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p strategy_plugins | |
mkdir -p roles | |
# roles are in a nested dir from a separate tools repo | |
if [ ! -d openshift-tools ]; then | |
git clone https://github.com/openshift/openshift-tools | |
fi | |
if [ ! -s roles/tools_roles ]; then |