Skip to content

Commit

Permalink
add 'owner' tag on ec2 instances (cloudformation templates)
Browse files Browse the repository at this point in the history
- ans-tower-lab
- bu-workshop
- ocp-demo-lab
- ocp-ha-lab
- ocp-workshop
- three-tier-app
  • Loading branch information
fridim committed Sep 22, 2017
1 parent 99b9141 commit d9abab9
Show file tree
Hide file tree
Showing 11 changed files with 152 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/configs/ans-tower-lab/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ansible-playbook \
-e "cloud_provider=${CLOUDPROVIDER}" \
-e "aws_region=${REGION}" \
-e "HostedZoneId=${HOSTZONEID}" \
-e "[email protected]" \
-e "install_ipa_client=false" \
-e "repo_method=file" -e "own_repo_path=${REPO_PATH}" -e "repo_version=${REPO_VERSION}" \
-e "software_to_deploy=none"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@
{
"Key": "internaldns",
"Value": "bastion.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
]
}
Expand Down Expand Up @@ -433,6 +437,10 @@
{
"Key": "internaldns",
"Value": "tower{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -531,6 +539,10 @@
{
"Key": "internaldns",
"Value": "frontend{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -621,6 +633,10 @@
{
"Key": "internaldns",
"Value": "app{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -711,6 +727,10 @@
{
"Key": "internaldns",
"Value": "appdb{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -813,6 +833,10 @@
{
"Key": "internaldns",
"Value": "windows{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -903,6 +927,10 @@
{
"Key": "internaldns",
"Value": "support{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@
{
"Key": "{{ project_tag }}",
"Value": "master"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -372,6 +376,10 @@
{
"Key": "{{ project_tag }}",
"Value": "infranode"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -467,6 +475,10 @@
"Key": "{{ project_tag }}",
"Value": "node",
"PropagateAtLaunch": true
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"VPCZoneIdentifier": [
Expand Down Expand Up @@ -517,6 +529,10 @@
{
"Key": "{{ project_tag }}",
"Value": "support"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -571,6 +587,10 @@
{
"Key": "{{ project_tag }}",
"Value": "bastion"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
]
}
Expand All @@ -587,6 +607,10 @@
{
"Key": "Project",
"Value": "{{ project_tag }}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
]
}
Expand Down
1 change: 1 addition & 0 deletions ansible/configs/ocp-demo-lab/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ time ansible-playbook -i ./inventory/ ./main.yml \
-e "guid=${GUID}" -e "env_type=${ENVTYPE}" -e "cloud_provider=${CLOUDPROVIDER}" \
-e "aws_region=${REGION}" -e "HostedZoneId=${HOSTZONEID}" -e "key_name=${KEYNAME}" \
-e "subdomain_base_suffix=${BASESUFFIX}" -e "install_idm=htpasswd" \
-e "[email protected]" \
-e "node_instance_count=${NODE_COUNT}" -e "infranode_instance_count=1" -e "master_instance_count=1" \
-e "software_to_deploy=none" -e "own_repo_path=${REPO_PATH}" -e "ipa_host_password=${IPAPASS}" \
-e "tower_run=false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@
{
"Key": "{{ project_tag }}",
"Value": "bastion"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
]
}
Expand Down Expand Up @@ -398,6 +402,10 @@
{
"Key": "{{ project_tag }}",
"Value": "master"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -485,6 +493,10 @@
{
"Key": "{{ project_tag }}",
"Value": "node"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -576,6 +588,10 @@
{
"Key": "{{ project_tag }}",
"Value": "infranode"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -665,6 +681,10 @@
{
"Key": "{{ project_tag }}",
"Value": "support"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -720,6 +740,10 @@
{
"Key": "Project",
"Value": "{{project_tag}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
]
}
Expand Down
1 change: 1 addition & 0 deletions ansible/configs/ocp-ha-lab/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ ansible-playbook -i ${DEPLOYER_REPO_PATH}/inventory/${CLOUDPROVIDER}.py ${DEPLOY
-e "infranode_instance_type=t2.large" -e "node_instance_type=t2.large" \
-e "support_instance_type=t2.medium" -e "node_instance_count=${NODE_COUNT}" \
-e "ipa_host_password=${IPAPASS}" -e "install_idm=htpasswd" \
-e "[email protected]" \
-e "repo_method=file" -e "own_repo_path=${REPO_PATH}" -e "repo_version=${REPO_VERSION}" \
-e "software_to_deploy=openshift" -e "osrelease=3.5.5.15" -e "docker_version=1.12.6" \
-e "ANSIBLE_REPO_PATH=${DEPLOYER_REPO_PATH}" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@
{
"Key": "{{ project_tag }}",
"Value": "bastion"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -412,6 +416,10 @@
{
"Key": "{{ project_tag }}",
"Value": "loadbalancer"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
]
}
Expand Down Expand Up @@ -489,6 +497,10 @@
{
"Key": "{{ project_tag }}",
"Value": "master"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -576,6 +588,10 @@
{
"Key": "{{ project_tag }}",
"Value": "node"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -667,6 +683,10 @@
{
"Key": "{{ project_tag }}",
"Value": "infranode"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -764,6 +784,10 @@
{
"Key": "{{ project_tag }}",
"Value": "support"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down
4 changes: 4 additions & 0 deletions ansible/configs/ocp-workshop/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ ansible-playbook -i inventory/${CLOUDPROVIDER}.py ./main.yml -e "guid=${GUID}"
-e "bastion_instance_type=t2.large" -e "master_instance_type=c4.xlarge" \
-e "infranode_instance_type=c4.4xlarge" -e "node_instance_type=c4.4xlarge" \
-e "nfs_instance_type=m3.large" -e "node_instance_count=5" \
-e "[email protected]" \
-e "install_idm=htpasswd" -e "software_to_deploy=openshift" \
-e "own_repo_path=${REPO_PATH}" --skip-tags=remove_self_provisioners
Expand Down Expand Up @@ -130,6 +131,7 @@ ansible-playbook -i ${DEPLOYER_REPO_PATH}/inventory/${CLOUDPROVIDER}.py ${DEPLOY
-e "support_instance_type=c4.xlarge" -e "node_instance_count=${NODE_COUNT}" \
-e "ipa_host_password=${IPAPASS}" -e "install_idm=ldap" \
-e "repo_method=satellite" -e "repo_version=${REPO_VERSION}" \
-e "[email protected]" \
-e "software_to_deploy=openshift" -e "osrelease=3.5.5.15" -e "docker_version=1.12.6" \
-e "ANSIBLE_REPO_PATH=${DEPLOYER_REPO_PATH}" 1>> $LOG_FILE 2>> $LOG_FILE
Expand Down Expand Up @@ -157,6 +159,7 @@ ansible-playbook -i ${DEPLOYER_REPO_PATH}/inventory/ec2.py ${DEPLOYER_REPO_PATH}
-e "infranode_instance_type=c4.4xlarge" -e "node_instance_type=c4.4xlarge" \
-e "nfs_instance_type=t2.large" -e "node_instance_count=${NODE_COUNT}" \
-e "install_idm=htpasswd" -e "software_to_deploy=openshift" \
-e "[email protected]" \
-e "own_repo_path=${REPO_PATH}" -e"repo_method=rhn" -e"ANSIBLE_REPO_PATH=${DEPLOYER_REPO_PATH}" \
-e "osrelease=3.5.5.31" -e "repo_version=${REPO_VERSION}" -e "docker_version=1.12.6" \
--skip-tags=remove_self_provisioners,opentlc-integration
Expand Down Expand Up @@ -192,6 +195,7 @@ ansible-playbook -i ${DEPLOYER_REPO_PATH}/inventory/${CLOUDPROVIDER}.py \
-e "nfs_instance_type=m3.large" \
-e "osrelease=${MINOR_VERSION}" \
-e "own_repo_path=${REPO_PATH}" \
-e "[email protected]" \
-e "repo_method=file" \
-e "subdomain_base_suffix=${BASESUFFIX}" \
--skip-tags=remove_self_provisioners,install_zabbix \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@
{
"Key": "internaldns",
"Value": "bastion.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -419,6 +423,10 @@
{
"Key": "internaldns",
"Value": "master{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -527,6 +535,10 @@
{
"Key": "internaldns",
"Value": "node{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -622,6 +634,10 @@
{
"Key": "internaldns",
"Value": "infranode{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -723,6 +739,10 @@
{
"Key": "internaldns",
"Value": "support{{loop.index}}.{{chomped_zone_internal_dns}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
],
"BlockDeviceMappings": [
Expand Down Expand Up @@ -778,6 +798,10 @@
{
"Key": "Project",
"Value": "{{project_tag}}"
},
{
"Key": "owner",
"Value": "{{ email | default('unknown')}}"
}
]
}
Expand Down
Loading

0 comments on commit d9abab9

Please sign in to comment.