This script will take a list of CredentialsRequest YAML files and output a combined IAM policy document
$ create_policy.py *.yaml
dhcp-range=192.168.10.100,192.168.10.150 | |
dhcp-option=option:router,192.168.10.3 | |
dhcp-option=option:dns-server,192.168.10.3 | |
log-dhcp | |
server=10.0.0.1 # upstream DNS | |
no-resolv | |
host-record=api.hattrick.redhat.com,192.168.10.98 | |
host-record=api-int.hattrick.redhat.com,192.168.10.98 |
Option | Documentation |
---|---|
-C | Show bytes transferred by each child in throughput testing. Useful if your operating system has any starvation problems in file I/O or in process management. |
-w | Do not unlink temporary files when finished using them. |
-c | Include close() in the timing calculations. This is useful only if you suspect that close() is broken in the operating system currently under test. It can be useful for NFS Version 3 testing as well to help identify if the nfs3_commit is working well. |
-e | Include flush (fsync,fflush) in the timing calculations |
kind: ImageSetConfiguration | |
apiVersion: mirror.openshift.io/v1alpha2 | |
storageConfig: | |
local: | |
path: ./ | |
mirror: | |
platform: | |
channels: |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: python-http | |
labels: | |
app: python-http | |
data: | |
app.py: | | |
import logging | |
from http.server import HTTPServer, BaseHTTPRequestHandler |
git clone https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner.git | |
cd nfs-subdir-external-provisioner | |
sed -i.backup 's/nfs-client/nfs-storage/g' ./deploy/class.yaml | |
sed -i.backup 's/namespace:.*/namespace: nfs-storage/g' ./deploy/rbac.yaml | |
sed -i.backup 's/namespace:.*/namespace: nfs-storage/g' ./deploy/deployment.yaml | |
vi ./deploy/deployment.yaml | |
# Update NFS_SERVER and NFS_PATH values (4 edits required) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Module Docstring | |
""" | |
__author__ = "Your Name" | |
__version__ = "0.1.0" | |
import argparse |
# -- Bootstrap kubelet on each node | |
cat <<EOF > /etc/yum.repos.d/kubernetes.repo | |
[kubernetes] | |
name=Kubernetes | |
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64 | |
enabled=1 | |
gpgcheck=1 | |
repo_gpgcheck=1 | |
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg |