Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saravanastoragenetwork/s3-ansible-playbook-bundle
GlusterFS S3 ansible playbook bundle(APB)
https://github.com/saravanastoragenetwork/s3-ansible-playbook-bundle
Last synced: 26 days ago
JSON representation
GlusterFS S3 ansible playbook bundle(APB)
- Host: GitHub
- URL: https://github.com/saravanastoragenetwork/s3-ansible-playbook-bundle
- Owner: SaravanaStorageNetwork
- Created: 2018-04-12T07:39:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-13T09:30:52.000Z (over 6 years ago)
- Last Synced: 2024-10-03T11:41:46.388Z (about 1 month ago)
- Language: Shell
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# S3-ansible-playbook-bundle
GlusterFS S3 ansible playbook bundle(APB)In the Host:
firewall-cmd --permanent --new-zone dockerc
firewall-cmd --permanent --zone dockerc --add-source 172.17.0.0/16
firewall-cmd --permanent --zone dockerc --add-port 8443/tcp
firewall-cmd --permanent --zone dockerc --add-port 53/udp
firewall-cmd --permanent --zone dockerc --add-port 8053/udp
#for apb
firewall-cmd --permanent --zone dockerc --add-port 1338/tcp
firewall-cmd --permanent --zone dockerc --add-port 1338/udp
firewall-cmd --reload
oc cluster up --public-hostname=10.70.42.192 --service-catalog=true --loglevel=2
oc login -u system:admin
oc new-project ansible-service-broker
ROUTING_SUFFIX="10.70.42.192.nip.io"
TEMPLATE_URL=${TEMPLATE_URL:-"https://raw.githubusercontent.com/openshift/ansible-service-broker/master/templates/deploy-ansible-service-broker.template.yaml"}
DOCKERHUB_ORG=${DOCKERHUB_ORG:-"ansibleplaybookbundle"} # DocherHub org where APBs can be found, default 'ansibleplaybookbundle'
ENABLE_BASIC_AUTH="false"
VARS="-p BROKER_CA_CERT=$(oc get secret -n kube-service-catalog -o go-template='{{ range .items }}{{ if eq .type "kubernetes.io/service-account-token" }}{{ index .data "service-ca.crt" }}{{end}}{{"\n"}}{{end}}' | tail -n 1)"
curl -s $TEMPLATE_URL | oc process -n ansible-service-broker -p DOCKERHUB_ORG="$DOCKERHUB_ORG" -p ENABLE_BASIC_AUTH="$ENABLE_BASIC_AUTH" -p NAMESPACE=ansible-service-broker -p ROUTING_SUFFIX="$ROUTING_SUFFIX" $VARS -f - | oc create -f -
oc adm policy add-cluster-role-to-user cluster-admin developer
oc login -u developer
This helps in apb push:
oc annotate route -n ansible-service-broker asb-1338 --overwrite haproxy.router.openshift.io/timeout=300s
docker build -t 172.31.17.15:5000/openshift/gluster-s3-apb .