-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make local dev compatible with arm64 for docker... This dramatically improves provisioning time and general performance for local development. As an added benefit, it also brings us up to Ubuntu 20.04 LTS and the latest Salt release (3004). * wait for pillar refresh to complete * make room for salt-2004.nyc1.psf.io * fixup consul join template when not all nodes are online * boto3 from distro * fix for DNS entry creation * update call signature for match.compound * add new consul servers * Update the state file for docs to accomodate ubuntu 20.04 (#248) - stopped installing pythons from the distro, relying on deadsnakes ppa - bootstrap pip via venv module instead of get-pip Co-authored-by: Chloe Gerhardson <66563430+cegerhardson@users.noreply.github.com>
- Loading branch information
1 parent
9dab6dd
commit 41d81fd
Showing
11 changed files
with
52 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
{% if grains["osarch"] == "arm64" %} | ||
{% set base_repo = "ports.ubuntu.com/ubuntu-ports/" %} | ||
{% else %} | ||
{% set base_repo = "us.archive.ubuntu.com/ubuntu/" %} | ||
{% endif %} | ||
|
||
###### Ubuntu Main Repos | ||
deb http://us.archive.ubuntu.com/ubuntu/ {{ grains["oscodename"] }} main restricted universe | ||
deb-src http://us.archive.ubuntu.com/ubuntu/ {{ grains["oscodename"] }} main restricted universe | ||
deb http://{{ base_repo }} {{ grains["oscodename"] }} main restricted universe | ||
deb-src http://{{ base_repo }} {{ grains["oscodename"] }} main restricted universe | ||
|
||
###### Ubuntu Update Repos | ||
deb http://us.archive.ubuntu.com/ubuntu/ {{ grains["oscodename"] }}-security main restricted universe | ||
deb http://us.archive.ubuntu.com/ubuntu/ {{ grains["oscodename"] }}-updates main restricted universe | ||
deb-src http://us.archive.ubuntu.com/ubuntu/ {{ grains["oscodename"] }}-security main restricted universe | ||
deb-src http://us.archive.ubuntu.com/ubuntu/ {{ grains["oscodename"] }}-updates main restricted universe | ||
deb http://{{ base_repo }} {{ grains["oscodename"] }}-security main restricted universe | ||
deb http://{{ base_repo }} {{ grains["oscodename"] }}-updates main restricted universe | ||
deb-src http://{{ base_repo }} {{ grains["oscodename"] }}-security main restricted universe | ||
deb-src http://{{ base_repo }} {{ grains["oscodename"] }}-updates main restricted universe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
boto3: | ||
pip.installed | ||
boto-pkgs: | ||
pkg.installed: | ||
- python3-boto | ||
- python3-boto3 | ||
|
||
{% 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 | ||
{% for server in public_ipv4 %} | ||
{{ server }}-route53: | ||
boto3_route53.rr_present: | ||
- DomainName: psf.io. | ||
- Name: {{ server }}. | ||
- TTL: 3600 | ||
- Type: A | ||
- ResourceRecords: {{ public_ipv4.get(server, []) }} | ||
boto_route53.rr_present: | ||
- zone: psf.io. | ||
- name: {{ server }}. | ||
- ttl: 3600 | ||
- record_type: A | ||
- value: {{ public_ipv4.get(server, []) }} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters