Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Containerized installation #40

Merged
merged 8 commits into from
Oct 18, 2016
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reference-architecture/aws-ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ The default region is us-east-1 but can be changed when running the ose-on-aws s
### AMI ID
The AMI ID may need to change if the AWS IAM account does not have access to the Red Hat Cloud Access gold image or if deploying outside of the us-east-1 region.

### Containerized Installation
The option to install OpenShift in containers is possible by providing the trigger --containerized=true.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wording is weird. Maybe something like:
The trigger(selection) containerized=true , provides the option to install OpenShift using Contianers.


### New AWS Environment (Greenfield)
When installing into an new AWS environment perform the following. This will create the SSH key, bastion host, and VPC for the new environment.
```
Expand Down
6 changes: 6 additions & 0 deletions reference-architecture/aws-ansible/add-node.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
@click.option('--rhsm-pool', help='Red Hat Subscription Management Pool ID or Subscription Name')

### Miscellaneous options
@click.option('--containerized', default='False', help='Containerized installation of OpenShift',
show_default=True)
@click.option('--iam-role', help='Specify the name of the existing IAM Instance profile',
show_default=True)
@click.option('--shortname', help='Specify the hostname of the sytem',
Expand Down Expand Up @@ -70,6 +72,7 @@ def launch_refarch_env(region=None,
rhsm_user=None,
rhsm_password=None,
rhsm_pool=None,
containerized=None,
node_type=None,
iam_role=None,
infra_elb_name=None,
Expand Down Expand Up @@ -141,6 +144,7 @@ def launch_refarch_env(region=None,
click.echo('\trhsm_user: %s' % rhsm_user)
click.echo('\trhsm_password: *******')
click.echo('\trhsm_pool: %s' % rhsm_pool)
click.echo('\tcontainerized: %s' % containerized)
click.echo('\tnode_type: %s' % node_type)
click.echo('\tiam_role: %s' % iam_role)
click.echo('\tinfra_elb_name: %s' % infra_elb_name)
Expand Down Expand Up @@ -187,6 +191,7 @@ def launch_refarch_env(region=None,
rhsm_user=%s \
rhsm_password=%s \
rhsm_pool=%s \
containerized=%s \
node_type=%s \
iam_role=%s \
infra_elb_name=%s \' %s' % (region,
Expand All @@ -205,6 +210,7 @@ def launch_refarch_env(region=None,
rhsm_user,
rhsm_password,
rhsm_pool,
containerized,
node_type,
iam_role,
infra_elb_name,
Expand Down
8 changes: 7 additions & 1 deletion reference-architecture/aws-ansible/ose-on-aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
show_default=True)
@click.option('--bastion-sg', default='/dev/null', help='Specify Bastion Security group used with byo-bastion',
show_default=True)
@click.option('--containerized', default='False', help='Containerized installation of OpenShift',
show_default=True)
@click.option('--no-confirm', is_flag=True,
help='Skip confirmation prompt')
@click.help_option('--help', '-h')
Expand Down Expand Up @@ -91,6 +93,7 @@ def launch_refarch_env(region=None,
rhsm_user=None,
rhsm_password=None,
rhsm_pool=None,
containerized=None,
verbose=0):

# Need to prompt for the R53 zone:
Expand Down Expand Up @@ -167,6 +170,7 @@ def launch_refarch_env(region=None,
click.echo('\trhsm_user: %s' % rhsm_user)
click.echo('\trhsm_password: *******')
click.echo('\trhsm_pool: %s' % rhsm_pool)
click.echo('\tcontainerized: %s' % containerized)
click.echo("")

if not no_confirm:
Expand Down Expand Up @@ -214,7 +218,8 @@ def launch_refarch_env(region=None,
deployment_type=%s \
rhsm_user=%s \
rhsm_password=%s \
rhsm_pool=%s \' %s' % (region,
rhsm_pool=%s \
containerized=%s \' %s' % (region,
ami,
keypair,
create_key,
Expand All @@ -238,6 +243,7 @@ def launch_refarch_env(region=None,
rhsm_user,
rhsm_password,
rhsm_pool,
containerized,
playbook)

if verbose > 0:
Expand Down
9 changes: 0 additions & 9 deletions reference-architecture/aws-ansible/playbooks/add-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
- vars/main.yaml
roles:
- rhsm-repos
- prerequisites

- include: node-setup.yaml

Expand All @@ -38,14 +37,6 @@
roles:
- infra-node-scaleup

- hosts: new_nodes
gather_facts: no
become: yes
vars_files:
- vars/main.yaml
roles:
- openshift-emptydir-quota

- hosts: localhost
connection: local
gather_facts: no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
openshift_router_selector: "role=infra"
openshift_hosted_router_replicas: 2
openshift_hosted_registry_replicas: 2
openshift_node_local_quota_per_fsgroup: 512Mi
openshift_master_cluster_method: native
openshift_cloudprovider_kind: aws
openshift_master_cluster_hostname: "internal-openshift-master.{{ public_hosted_zone }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
- vars/main.yaml
roles:
- rhsm-repos
- prerequisites

- include: openshift-setup.yaml

Expand All @@ -49,14 +48,6 @@
- s3-registry-user
- s3-registry-bucket

- hosts: schedulable_nodes
gather_facts: no
become: yes
vars_files:
- vars/main.yaml
roles:
- openshift-emptydir-quota

- hosts: primary_master
gather_facts: no
become: yes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
openshift_hosted_router_replicas: 2
openshift_hosted_registry_replicas: 2
openshift_master_cluster_method: native
openshift_node_local_quota_per_fsgroup: 512Mi
openshift_cloudprovider_kind: aws
openshift_master_cluster_hostname: "internal-openshift-master.{{ public_hosted_zone }}"
openshift_master_cluster_public_hostname: "openshift-master.{{ public_hosted_zone }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,18 @@
"Type": "String",
"Default": "25"
},
"MasterEmptyVolSize": {
"Type": "String",
"Default": "5"
},
"MasterEtcdVolType": {
"Type": "String",
"Default": "gp2"
},
"MasterEmptyVolType": {
"Type": "String",
"Default": "gp2"
},
"MasterDockerVolType": {
"Type": "String",
"Default": "gp2"
Expand Down Expand Up @@ -727,6 +735,15 @@
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
},
Expand Down Expand Up @@ -772,6 +789,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down Expand Up @@ -818,6 +843,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,18 @@
"Type": "String",
"Default": "25"
},
"MasterEmptyVolSize": {
"Type": "String",
"Default": "5"
},
"MasterEtcdVolType": {
"Type": "String",
"Default": "gp2"
},
"MasterEmptyVolType": {
"Type": "String",
"Default": "gp2"
},
"MasterUserData": {
"Type": "String"
},
Expand Down Expand Up @@ -801,6 +809,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down Expand Up @@ -847,6 +863,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down Expand Up @@ -893,6 +917,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,21 @@
"Type": "String",
"Default": "25"
},
"MasterEmptyVolSize": {
"Type": "String",
"Default": "5"
},
"MasterUserData": {
"Type": "String"
},
"MasterEtcdVolType": {
"Type": "String",
"Default": "gp2"
},
"MasterEmptyVolType": {
"Type": "String",
"Default": "gp2"
},
"MasterDockerVolType": {
"Type": "String",
"Default": "gp2"
Expand Down Expand Up @@ -999,6 +1007,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down Expand Up @@ -1046,6 +1062,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down Expand Up @@ -1093,6 +1117,14 @@
"VolumeSize": {"Ref": "MasterEtcdVolSize"},
"VolumeType": {"Ref": "MasterEtcdVolType"}
}
},
{
"DeviceName": "/dev/xvdd",
"Ebs": {
"DeleteOnTermination": "false",
"VolumeSize": {"Ref": "MasterEmptyVolSize"},
"VolumeType": {"Ref": "MasterEmptyVolType"}
}
}
]
}
Expand Down
Loading