This file contains 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
{ | |
"apiVersion": "v1", | |
"kind": "ImageStream", | |
"metadata": { | |
"annotations": { | |
"openshift.io/display-name": "Go" | |
}, | |
"name": "golang" | |
}, | |
"spec": { |
This file contains 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
config_opts['bootstrap_chroot_additional_packages'] = [] | |
config_opts['bootstrap_module_enable'] = [] | |
config_opts['bootstrap_module_install'] = [] | |
config_opts['plugin_conf']['root_cache_enable'] = False | |
config_opts['plugin_conf']['lvm_root_enable'] = True | |
config_opts['plugin_conf']['lvm_root_opts'] = {} | |
config_opts['plugin_conf']['lvm_root_opts']['volume_group'] = 'vg_system' | |
config_opts['plugin_conf']['lvm_root_opts']['size'] = '2G' | |
config_opts['plugin_conf']['lvm_root_opts']['umount_root'] = True |
This file contains 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
--- | |
# This playbook will check a wide range of code paths of the Ansible lvol module. | |
# | |
# Make sure you adjust `test_vg` and `test_pvs` variables according to the test volume group. | |
# | |
# Invoke with: ansible-playbook [-K][-v] check-lvol.yml | |
# | |
- hosts: localhost | |
become: True |
This file contains 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 | |
from re import match | |
sshd_facts = [ | |
{ 'variable': 'AllowUsers', | |
'fact': 'allow_users', | |
'default': [] }, | |
{ 'variable': 'AllowGroups', | |
'fact': 'allow_groups', |
This file contains 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
--- | |
# -------------------------------------------- | |
# Add static hostnames to local /etc/hosts | |
# -------------------------------------------- | |
- name: Add container names to /etc/hosts | |
lineinfile: | |
dest: '/etc/hosts' | |
regexp: '{{ item.name }}' |