Skip to content

Commit 59cdf63

Browse files
author
literalice
committed
For working with OKD
1 parent 4fd70b1 commit 59cdf63

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ You will be asked some parameters for configuring the cluster infrastructure. Se
4646

4747
### Public DNS setting
4848

49-
You need to set up the domain names for install and access the cluster.
49+
If you want to use your named domain, you need to set up the domain names for install and access the cluster.
50+
If not, xx.xx.xx.xx.nip.io address is used.
5051

5152
`make dns-nameservers`
5253

@@ -118,6 +119,7 @@ export TF_VAR_rhn_password="xxxxxxxxxxx"
118119
export TF_VAR_rh_subscription_pool_id="xxxxxxxx"
119120
120121
# Public DNS subdomain for access to services served in the cluster
122+
# If it isn't set, a nip address is used.
121123
export TF_VAR_platform_domain=sample-platform.example.com
122124
# Email used to register Let's encrypt account.
123125
export TF_VAR_platform_domain_administrator_email=administrator@example.com

examples/origin/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ variable "compute_node_count" {
3838
default = 2
3939
}
4040

41-
variable "compute_instance_type" {
41+
variable "compute_node_instance_type" {
4242
default = "m4.large"
4343
}
4444

modules/infrastructure/resources/origin-bastion-init.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ write_files:
66
path: /root/platform_id_rsa
77
permissions: '0600'
88
runcmd:
9+
- yum -y install git vim httpd-tools java-1.8.0-openjdk-headless python-passlib patch
10+
- yum -y update
911
- yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
1012
- sed -i -e "s/^enabled=1/enabled=0/" /etc/yum.repos.d/epel.repo
11-
- yum -y install wget git net-tools bind-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct
12-
- yum -y --enablerepo=epel install ansible pyOpenSSL vim
13-
- rpm -Uvh https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.3.0-1.el7.ans.noarch.rpm
14-
- yum update
13+
- yum -y --enablerepo=epel install ansible pyOpenSSL
1514
- git clone https://github.com/openshift/openshift-ansible
1615
- mkdir -p /usr/share/ansible/
1716
- mv openshift-ansible /usr/share/ansible/
18-
- cd /usr/share/ansible/openshift-ansible && git checkout -b release-${openshift_major_version} origin/release-${openshift_major_version}
17+
- cd /usr/share/ansible/openshift-ansible && git checkout release-${openshift_major_version}
1918
- curl -L -o /usr/local/bin/ocinventory https://github.com/literalice/openshift-inventory-utils/releases/download/v0.1/ocinventory_unix
2019
- chmod +x /usr/local/bin/ocinventory
2120
- chown ${bastion_ssh_user}:${bastion_ssh_user} /root/platform_id_rsa

resources/openshift-install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ if [ -z $UPSTREAM ]; then
2222
ansible all -i $HOME/inventory.yml -a 'subscription-manager repos --disable="*"'
2323
ansible all -i $HOME/inventory.yml -a 'subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-7-server-extras-rpms" --enable="rhel-7-fast-datapath-rpms" --enable="rhel-7-server-ansible-2.4-rpms"'
2424
ansible all -i $HOME/inventory.yml -a 'subscription-manager repos --enable="rhel-7-server-ose-${openshift_major_version}-rpms"'
25+
else
26+
ansible all -i $HOME/inventory.yml -m yum -a 'name=wget,git,net-tools,bind-utils,yum-utils,iptables-services,bridge-utils,bash-completion,kexec-tools,sos,psacct,atomic state=present'
27+
ansible all -i $HOME/inventory.yml -m yum -a 'name=docker-1.13.1 state=present'
28+
ansible all -i $HOME/inventory.yml -m systemd -a 'name=docker state=started enabled=yes'
2529
fi
2630

2731
ansible-playbook -i $HOME/inventory.yml /usr/share/ansible/openshift-ansible/playbooks/prerequisites.yml -vvv | tee ansible-$(date +%Y%m%d%H%M%S)-prerequisites.log

0 commit comments

Comments
 (0)