Commit 68bb06e5 authored by Caleb Warren's avatar Caleb Warren
Browse files

airgap HA automation

Showing with 551 additions and 1 deletion
+551 -1
......@@ -491,6 +491,27 @@ class AmazonWebServices(CloudProviderBase):
}]
}
)
def upsert_route_53_record_a(
self, record_name, record_value, action='UPSERT',
record_type='A', record_ttl=300):
return self._route53_client.change_resource_record_sets(
HostedZoneId=AWS_HOSTED_ZONE_ID,
ChangeBatch={
'Comment': 'Record created or updated for automation',
'Changes': [{
'Action': action,
'ResourceRecordSet': {
'Name': record_name,
'Type': record_type,
'TTL': record_ttl,
'ResourceRecords': [{
'Value': record_value
}]
}
}]
}
)
def delete_route_53_record(self, record_name):
record = None
......
user: ubuntu
role:
- controlplane
- etcd
- worker
ssh_key_path: /home/ubuntu/jenkins-rke-validation.pem
\ No newline at end of file
snapshot: true
creation: 6h
retention: 24h
private_registries:
- url: {}
is_default: true
\ No newline at end of file
......@@ -5,7 +5,7 @@ set -eu
DEBUG="${DEBUG:-false}"
env | egrep '^(ARM_|CATTLE_|ADMIN|USER|DO|RANCHER_|AWS_|DEBUG|LOGLEVEL|DEFAULT_|OS_|DOCKER_|CLOUD_|KUBE|BUILD_NUMBER|AZURE).*\=.+' | sort > .env
env | egrep '^(ARM_|CATTLE_|ADMIN|USER|DO|RANCHER_|AWS_|DEBUG|LOGLEVEL|DEFAULT_|OS_|DOCKER_|CLOUD_|KUBE|BUILD_NUMBER|RKE_|AZURE).*\=.+' | sort > .env
if [ "false" != "${DEBUG}" ]; then
cat .env
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment