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
{ | |
"variables": { | |
"vcenter_server": "vcenter.gxr.me", | |
"vcenter_username": "[email protected]", | |
"vcenter_password": "", | |
"vcenter_datacenter": "GXR", | |
"vcenter_cluster": "GXR-Primary", | |
"vcenter_host": "esx2.gxr.me", | |
"vcenter_datastore_vm": "esx2_vms_nvme1", |
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
source overcloudrc | |
openstack network create --provider-network-type flat --provider-physical-network datacentre public --external --share | |
openstack subnet create --no-dhcp --gateway 172.16.0.1 --subnet-range 172.16.0.0/24 --allocation-pool start=172.16.0.50,end=172.16.0.90 --network public public_subnet | |
openstack floating ip create --floating-ip-address 172.16.0.70 public | |
openstack flavor create --ram 16384 --disk 20 --vcpu 8 --public m1.xlarge | |
openstack flavor create --ram 10240 --disk 20 --vcpu 4 --public m1.large | |
curl --compressed --insecure https://192.168.122.2/rhcos-42.80.20190725.1-openstack.qcow2 -O | |
openstack image create rhcos --container-format bare --disk-format qcow2 --public --file rhcos-*.qcow2 | |
openstack project create openshift | |
openstack quota set --ram -1 --cores -1 openshift |
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
--- | |
- name: Windows PowerSTIG | |
hosts: all | |
vars: | |
ansible_connection: winrm | |
ansible_winrm_transport: basic | |
gather_facts: no | |
become: yes | |
become_method: runas | |
become_user: Administrator |
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
cat <<EOT >> /tmp/update-cloud-init.sh | |
#!/bin/bash | |
# Script to configure newer cloud-init | |
set -eux | |
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
curl https://copr.fedorainfracloud.org/coprs/g/cloud-init/el-testing/repo/epel-7/group_cloud-init-el-testing-epel-7.repo > /etc/yum.repos.d/cloudinit.repo | |
yum -y install cloud-init |
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
spec: | |
hard: | |
limited-use-nfs.storageclass.storage.k8s.io/requests.storage: "0" | |
limited-use-nfs.storageclass.storage.k8s.io/persistentvolumeclaims: "0" |
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
spec: | |
hard: | |
managed-nfs-storage.storageclass.storage.k8s.io/requests.storage: "5Gi" | |
managed-nfs-storage.storageclass.storage.k8s.io/persistentvolumeclaims: "2" |
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: ResourceQuota | |
metadata: | |
creationTimestamp: null | |
labels: | |
type: base-project-quota | |
name: base-project-quota | |
spec: | |
hard: | |
managed-nfs-storage.storageclass.storage.k8s.io/requests.storage: "5Gi" |
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
##### | |
# Eval Ceph iscsigw boot | |
##### | |
### Prereq download/import: | |
cd /tmp | |
wget http://mirror.atlantic.net/centos/7/os/x86_64/isolinux/initrd.img | |
wget http://mirror.atlantic.net/centos/7/os/x86_64/isolinux/vmlinuz | |
wget https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1503.raw.xz | |
xz -d CentOS-7-x86_64-GenericCloud-1503.raw.xz |
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
#!/bin/bash | |
# Author: JR Morgan <[email protected]> | |
# Enumerate all images while filtering out CFME,Openstack,preview,beta,etc. and | |
# Filter images by platform version | |
version="3.9" | |
## Set to "" for standard registry. Trailing slash must be present when specifying a prefix | |
repoprefix="your.internalregistry.com:18443/" | |
images=$(curl -s https://registry.access.redhat.com/v1/search?q=* | python -mjson.tool | grep '"name":' | grep -E -v '(preview|beta|cloudforms|openstack|rhmap)' | grep -E '(dotnet|jboss|openshift3|httpd|ruby|nodejs|python|perl|php|mysql|mariadb|mongodb|postgres|redis|sso|jdk)' | awk '{ gsub("\"",""); gsub(",",""); print($2)}') |
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
### Filter out ISE hosts that should be sending specific messages for Device/IP association: | |
filter f_ise_host { ( | |
host("4.4.4.4") or | |
host("8.8.8.8") or | |
host("ise01") or | |
host("ise02") | |
); | |
}; |