Skip to content

Instantly share code, notes, and snippets.

View jcpowermac's full-sized avatar

Joseph Callen jcpowermac

View GitHub Profile

Run the Python reset script

In /opt/autodeploy/projects/dcaf-abe/ansible/site_docker.yml change image to "jcpowermac/hanlon:esxi-usb-2.5.0"

60     - name: Start Hanlon Server Container
 61       docker:
 62         docker_api_version: "{{ docker_api_version }}"
 63         name: hanlon-server
diff --git a/5.6/root/usr/bin/run-mysqld b/5.6/root/usr/bin/run-mysqld
index 9aef142..a77c858 100755
--- a/5.6/root/usr/bin/run-mysqld
+++ b/5.6/root/usr/bin/run-mysqld
@@ -14,6 +14,7 @@ log_info 'Processing MySQL configuration files ...'
envsubst < ${CONTAINER_SCRIPTS_PATH}/my-base.cnf.template > /etc/my.cnf.d/base.cnf
envsubst < ${CONTAINER_SCRIPTS_PATH}/my-paas.cnf.template > /etc/my.cnf.d/paas.cnf
envsubst < ${CONTAINER_SCRIPTS_PATH}/my-tuning.cnf.template > /etc/my.cnf.d/tuning.cnf
+envsubst < ${CONTAINER_SCRIPTS_PATH}/my-collation.cnf.template > /etc/my.cnf.d/collation.cnf

Keybase proof

I hereby claim:

  • I am jcpowermac on github.
  • I am jcpowermac (https://keybase.io/jcpowermac) on keybase.
  • I have a public key whose fingerprint is 13A2 9EA0 18B7 701E B6B8 8AB0 3067 4EC1 FDDD 4FF5

To claim this, I am signing this object:

flows

Services
NAME                    CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
cakephp-mysql-example   172.30.82.238   <none>        8080/TCP   17m
mysql                   172.30.52.49    <none>        3306/TCP   17m
diff --git a/docker/RELEASE b/docker/RELEASE
new file mode 100644
index 0000000..b6e012c
--- /dev/null
+++ b/docker/RELEASE
@@ -0,0 +1,4 @@
+RELEASE_PACKAGE=gitlab-ee
+RELEASE_VERSION=8.14.1-ee.0
+PACKAGECLOUD_REPO=gitlab-ee
+
kind: Template
apiVersion: v1
metadata:
name: "policy-roles-template"
labels:
createdBy: "policy-roles-template"
parameters:
- description: "The namespace to create roles in."
name: NAMESPACE
required: true
FROM fedora
RUN mkdir -p /opt/openshift-ansible/
COPY ./ansible.cfg.example /opt/openshift-ansible/ansible.cfg
COPY . /opt/openshift-ansible
COPY .ssh/ /root/
RUN echo "callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks\naction_plugins = /usr/lib/python2.7/site-packages/ara/plugins/actions\nlibrary = /usr/lib/python2.7/site-packages/ara/plugins/modules" >> /opt/openshift-ansible/ansible.cfg
@jcpowermac
jcpowermac / 1_heketi_notes.md
Last active January 24, 2017 15:39
OCP 3.4, Heketi and openshift-ansible (master)

Github Docs

offical docs

  • I didn't bother creating an additional router seemed a pain.
  • In the topology.json file the storage array must contain IP address not hostnames. Learned this the hard way.
  • If the install breaks you will need to delete the gluster volume group and physical volume. This could be added to the ansible playbook
oc new-project storage
---
apiVersion: batch/v1
kind: Job
metadata:
name: p2i-test
spec:
parallelism: 1
completions: 1
template:
metadata:
++ id -u
+ USER_ID=1000130000
++ id -g
+ GROUP_ID=0
+ sed 's@default:x:${USER_ID}:${GROUP_ID}@default:x:1000130000:0@g' /opt/app-root/etc/passwd.template
+ INVENTORY=tmp_inventory
+ INVENTORY_ARG='-i tmp_inventory'
+ [[ -v INVENTORY_FILE ]]
+ [[ -v INVENTORY_URL ]]
+ [[ -v DYNAMIC_SCRIPT_URL ]]