diff --git a/salt/dns/init.sls b/salt/dns/init.sls index 5a9c8888..eea11e38 100644 --- a/salt/dns/init.sls +++ b/salt/dns/init.sls @@ -1,14 +1,16 @@ -boto-pkgs: - pkg.installed: - - pkgs: - - python3-boto - - python3-boto3 +boto: + pip.installed: + - pip_bin: /usr/bin/salt-pip + +boto3: + pip.installed: + - pip_bin: /usr/bin/salt-pip {% set public_ipv4 = salt["mine.get"]("*", "public_ipv4") %} # We assume that a server will always have an IPv4 address. -# TODO: Update back to boto3_route53 when https://github.com/saltstack/salt/pull/60951 makes it into a release +# TODO(@JacobCoffee): Update back to boto3_route53 {% for server in public_ipv4 %} {{ server }}-route53: boto_route53.rr_present: