Module Import alias Import alias Import alias ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults NameLoad body TryExcept body Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad Raise Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad TryExcept body Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler body Raise Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Print BinOpMod Str NameLoad Assign NameStore Call NameLoad Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Print BinOpMod Str NameLoad Print Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Print NameLoad
N/A N/A yaml N/A requests N/A boto.route53 boto.route53.record ResourceRecordSets N/A CONFIG_FILE /etc/salt/ha/ha-config N/A METADATA_URL http://169.254.169.254/latest/meta-data/ get_info N/A N/A config_file N/A CONFIG_FILE N/A N/A N/A N/A contents N/A N/A N/A open config_file r read N/A info_dict N/A N/A yaml load contents N/A N/A N/A Exception N/A e N/A N/A N/A Unable to load config file contents %s config_file N/A N/A Exception: %s e N/A N/A info_dict N/A get_ec2_dns N/A N/A N/A N/A N/A content None N/A N/A N/A url N/A METADATA_URL public-hostname N/A r N/A N/A requests get url N/A content N/A r content N/A N/A N/A N/A N/A content N/A update_template N/A N/A template_string sm_dns_name aws_dns_name N/A N/A N/A str2 N/A N/A rrset_template replace my-saltmaster-dns-name sm_dns_name N/A str3 N/A N/A str2 replace aws-target-dns-name aws_dns_name N/A newstr1 N/A N/A template_string replace my-saltmaster-dns-name sm_dns_name N/A newstr2 N/A N/A newstr1 replace aws-target-dns-name aws_dns_name N/A newstr2 N/A N/A rrset_template {
  "Comment": "Create or Update a dns cname record for a salt-master",
  "Changes": [
    {
      "Action": "UPSERT",
      "ResourceRecordSet": {
        "Name": "my-saltmaster-dns-name",
        "Type": "CNAME",
        "TTL": 60,
        "ResourceRecords": [
          {
            "Value": "aws-target-dns-name"
          }
        ]
      }
    }
  ]
} get_route53_connection N/A N/A region N/A N/A N/A conn None N/A N/A N/A conn N/A N/A N/A boto route53 connect_to_region region N/A N/A N/A Exception N/A e N/A N/A N/A Exception: %s e N/A conn N/A update_dns_cname_record N/A N/A conn zone_id cname_record cname_value N/A N/A N/A result None N/A N/A N/A changes N/A ResourceRecordSets conn zone_id N/A change N/A N/A changes add_change UPSERT cname_record CNAME 60 N/A N/A N/A change add_value cname_value N/A result N/A N/A changes commit N/A N/A N/A Exception N/A e N/A N/A N/A Exception: %s e N/A result N/A N/A N/A __name__ __main__ N/A N/A info_dict N/A get_info N/A region N/A N/A info_dict get region None N/A N/A Region: %s region N/A sm_dns_name N/A N/A info_dict get dns_name None N/A N/A SaltMaster DNS Name: %s sm_dns_name N/A aws_dns_name N/A get_ec2_dns N/A N/A AWS EC2 DNS Name: %s aws_dns_name N/A hosted_zone_id N/A N/A info_dict get hosted_zone_id None N/A N/A Hosted Zone ID: %s hosted_zone_id N/A N/A conn N/A get_route53_connection region N/A result N/A update_dns_cname_record conn hosted_zone_id sm_dns_name aws_dns_name N/A result