diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | README_AWS.md | 5 | ||||
-rw-r--r-- | lib/aws_command.rb | 2 | ||||
-rw-r--r-- | lib/aws_helper.rb | 2 | ||||
-rw-r--r-- | lib/gce_command.rb | 4 | ||||
-rw-r--r-- | roles/openshift_master/tasks/main.yml | 6 |
6 files changed, 19 insertions, 8 deletions
@@ -10,7 +10,13 @@ Setup ``` yum install -y ansible rubygem-thor rubygem-parseconfig util-linux ``` - + - OSX: + ``` + # Install ansible and python 2 + brew install ansible python + # Required ruby gems + gem install thor parseconfig + ``` - Setup for a specific cloud: - [AWS](README_AWS.md) - [GCE](README_GCE.md) diff --git a/README_AWS.md b/README_AWS.md index c0f2bce75..fa1ec61ce 100644 --- a/README_AWS.md +++ b/README_AWS.md @@ -38,9 +38,14 @@ Alternatively, you can configure your ssh-agent to hold the credentials to conne Install Dependencies -------------------- 1. Ansible requires python-boto for aws operations: +RHEL/CentOS/Fedora ``` yum install -y ansible python-boto ``` +OSX: +``` + pip install -U boto +``` Test The Setup diff --git a/lib/aws_command.rb b/lib/aws_command.rb index 0942c6e04..267513f37 100644 --- a/lib/aws_command.rb +++ b/lib/aws_command.rb @@ -114,7 +114,7 @@ module OpenShift desc "ssh", "Ssh to an instance" def ssh(*ssh_ops, host) - if host =~ /^([\w\d_.-]+)@([\w\d-_.]+)/ + if host =~ /^([\w\d_.\-]+)@([\w\d\-_.]+)/ user = $1 host = $2 end diff --git a/lib/aws_helper.rb b/lib/aws_helper.rb index 2e90ba148..4da5d0925 100644 --- a/lib/aws_helper.rb +++ b/lib/aws_helper.rb @@ -19,7 +19,7 @@ module OpenShift retval = [] hosts['_meta']['hostvars'].each do |host, info| retval << OpenStruct.new({ - :name => info['ec2_tag_Name'], + :name => info['ec2_tag_Name'] || 'UNSET', :env => info['ec2_tag_environment'] || 'UNSET', :public_ip => info['ec2_ip_address'], :public_dns => info['ec2_public_dns_name'], diff --git a/lib/gce_command.rb b/lib/gce_command.rb index cec1b9c2b..214cc1c05 100644 --- a/lib/gce_command.rb +++ b/lib/gce_command.rb @@ -143,7 +143,7 @@ module OpenShift :desc => 'A relative path where files are written to.' desc "scp_from", "scp files from an instance" def scp_from(*ssh_ops, host) - if host =~ /^([\w\d_.-]+)@([\w\d-_.]+)$/ + if host =~ /^([\w\d_.\-]+)@([\w\d\-_.]+)$/ user = $1 host = $2 end @@ -175,7 +175,7 @@ module OpenShift desc "ssh", "Ssh to an instance" def ssh(*ssh_ops, host) - if host =~ /^([\w\d_.-]+)@([\w\d-_.]+)/ + if host =~ /^([\w\d_.\-]+)@([\w\d\-_.]+)/ user = $1 host = $2 end diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml index eb8c6a2bd..2f8f8b950 100644 --- a/roles/openshift_master/tasks/main.yml +++ b/roles/openshift_master/tasks/main.yml @@ -40,13 +40,13 @@ facts: - section: master option: debug_level - value: "{{ openshift_master_debug_level }}" } + value: "{{ openshift_master_debug_level }}" - section: master option: public_ip - value: "{{ openshift_public_ip }}" } + value: "{{ openshift_public_ip }}" - section: master option: externally_managed - value: "{{ openshift_master_manage_service_externally }}" } + value: "{{ openshift_master_manage_service_externally }}" - name: Start and enable openshift-master service: name=openshift-master enabled=yes state=started |