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
we'll bind mount /etc/profile and /etc/profile.d/ and bind mount /usr/local/bin | |
in the init.sh | |
we'll start by source /etc/profile which will cover /etc/profile.d | |
then check for the vmware-toolbox-cmd from the bind mounted /usr/local/bin | |
create it if need be | |
then lastly run vmtoolsd |
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
source /etc/profile | |
COMMAND=/usr/local/bin/vmware-toolbox-cmd | |
if [ ! -e $COMMAND ]; | |
echo 'runc exec -t open-vm-tools vmware-toolbox-cmd "$@"' > /usr/local/bin/vmware-toolbox-cmd | |
fi | |
exec /usr/bin/vmtoolsd |
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
-> cns-deploy -n storage -g topology.json --admin-key 'myS3cr3tpassw0rd' --user-key 'mys3rs3cr3tpassw0rd' | |
Welcome to the deployment tool for GlusterFS on Kubernetes and OpenShift. | |
Before getting started, this script has some requirements of the execution | |
environment and of the container platform that you should verify. | |
The client machine that will run this script must have: | |
* Administrative access to an existing Kubernetes or OpenShift cluster | |
* Access to a python interpreter 'python' | |
* Access to the heketi client 'heketi-cli' |
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
if 'storage' in self.node_type: | |
if 'clean' in self.tag: | |
self.storage_nodes = int(self.storage_nodes) - int(self.node_number) | |
else: | |
self.storage_nodes = int(self.storage_nodes) + int(self.node_number) | |
config.set('vmware', 'storage_nodes', str(self.storage_nodes)) | |
print "Updating %s file with %s storage_nodes" % (vmware_ini_path, str(self.storage_nodes)) |
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
git clone -b vmw-3.5 https://github.com/openshift/openshift-ansible-contrib | |
cd openshift-ansible-contrib/reference-architecture/vmware-ansible/ | |
cp -f ~/07-26/ocp-on-vmware.ini . | |
cp -f ~/07-26/vmware_inventory.ini inventory/vsphere/vms/vmware_inventory.ini | |
./ocp-on-vmware.py --clean | |
./ocp-on-vmware.py --create_inventory | |
./ocp-on-vmware.py --create_ocp_vars | |
./ocp-on-vmware.py |
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
kubernetesMasterConfig: | |
admissionConfig: | |
pluginConfig: | |
{} | |
apiServerArguments: | |
cloud-provider: | |
- "vsphere" | |
cloud-config: | |
- "/etc/vsphere/vsphere.conf" | |
controllerArguments: |
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
[Global] | |
user = [email protected] | |
password = mypassword | |
server = 10.x.x.25 | |
port = 443 | |
insecure-flag = 1 | |
datacenter = Boston | |
#datastore = /Boston/datastore/ose3-vmware | |
datastore = ose3-vmware | |
# working-dir = /Boston/vm/OCP35/ |
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
[root@master-0 ~]# oc describe pod test-vmdk | |
Name: test-vmdk | |
Namespace: default | |
Security Policy: privileged | |
Node: app-0/10.19.114.227 | |
Start Time: Wed, 02 Aug 2017 19:29:57 +0000 | |
Labels: <none> | |
Annotations: openshift.io/scc=privileged | |
Status: Running | |
IP: 172.16.2.8 |
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
git clone https://github.com/openshift/openshift-ansible | |
cat ansible-inventory | |
[OSEv3:children] | |
masters | |
etcd | |
nodes | |
[OSEv3:vars] | |
deployment_type=openshift-enterprise |
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
[code language="bash"] | |
FROM registry.access.redhat.com/rhel7.3 | |
ENV SYSTEMD_IGNORE_CHROOT=1 | |
RUN yum -y --disablerepo=\* --enablerepo=rhel-7-server-rpms install yum-utils && \ | |
yum-config-manager --disable \* && \ | |
yum-config-manager --enable rhel-7-server-rpms && \ | |
yum clean all |