rhtconsulting / rhc-ose

OpenShift Automation and Utilities by Red Hat Consulting
42 stars 34 forks source link

Adding NFS support and fixing template labels so we get a router and … #207

Closed etsauer closed 8 years ago

etsauer commented 8 years ago

…registry out of the box.

What does this PR do?

Adds an NFS server to the ose-provision process for supporting creation of a registry out of the box. The NFS server is passed to the openshift-ansible installer in the inventory file. This PR also changes the label name from 'type' to 'region' for the openshift nodes, in order to allow the installer to create the router and registry as expected.

How should this be manually tested?

Run provision.sh -i=./inventory_file -p=./openshift-ansible/.

Is there a relevant Issue open for this?

n/a

Who would you like to review this?

/cc @oybed @sabre1041 @vvaldez

sabre1041 commented 8 years ago

@etsauer Successful environment build

PLAY RECAP *********************************************************************
casl-ablock-1468020664-master1.example.com : ok=383  changed=85   unreachable=0    failed=0   
casl-ablock-1468020664-nfs1.example.com : ok=43   changed=11   unreachable=0    failed=0   
casl-ablock-1468020664-node1.example.com : ok=102  changed=30   unreachable=0    failed=0   
casl-ablock-1468020664-node2.example.com : ok=102  changed=30   unreachable=0    failed=0   
localhost                  : ok=16   changed=7    unreachable=0    failed=0   

Node labels also the expected result

NAME                                         LABELS                                                                            STATUS                     AGE
casl-ablock-1468020664-master1.example.com   kubernetes.io/hostname=casl-ablock-1468020664-master1.example.com,region=master   Ready,SchedulingDisabled   1h
casl-ablock-1468020664-node1.example.com     kubernetes.io/hostname=casl-ablock-1468020664-node1.example.com,region=infra      Ready                      1h
casl-ablock-1468020664-node2.example.com     kubernetes.io/hostname=casl-ablock-1468020664-node2.example.com,region=app        Ready                      1h

Router and registry deployed successful. Deployed cakephp app and registry was being stored on the NFS instance

@vvaldez do you want to review as well? otherwise i can merge