Compare commits
	
		
			11 Commits
		
	
	
		
			1b941a11a2
			...
			devel
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 4a516eee15 | |||
| 15a1411f1a | |||
| 868ab721dd | |||
| 9776e9a316 | |||
| 28f1f80d6f | |||
| 0f9479731a | |||
| 3df0115191 | |||
| fcb25b79ce | |||
| e591db8581 | |||
| e4fd90c013 | |||
| 219b03b4ee | 
							
								
								
									
										166
									
								
								inventory/en1.old.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										166
									
								
								inventory/en1.old.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,166 @@ | |||||||
|  | --- | ||||||
|  | workstation: | ||||||
|  |   hosts: | ||||||
|  |     voyager: | ||||||
|  |       skylab_description: Personal Workstation | ||||||
|  |       skylab_hostname: voyager.skylab.enp.one | ||||||
|  |       skylab_targets: [workstation] | ||||||
|  |  | ||||||
|  | en1: | ||||||
|  |   vars: | ||||||
|  |     skylab_location: Newton MA | ||||||
|  |     skylab_dashboard: info.en1.local | ||||||
|  |     # gross hack for now, will be refactored later | ||||||
|  |     _skylab_adguard_nat_rule: 9 | ||||||
|  |  | ||||||
|  |   hosts: | ||||||
|  |     core: | ||||||
|  |       ansible_host: 10.42.101.1 | ||||||
|  |       ansible_port: 4242 | ||||||
|  |       ansible_network_os: edgeos | ||||||
|  |       skylab_description: EN1 Core Router | ||||||
|  |  | ||||||
|  |     iridium: | ||||||
|  |       ansible_host: 10.42.101.200 | ||||||
|  |       skylab_description: Local Monitor Node | ||||||
|  |       skylab_hostname: iridium.skylab.enp.one | ||||||
|  |       skylab_targets: [network] | ||||||
|  |       skylab_networking: | ||||||
|  |         enp4s0: | ||||||
|  |           firewall: internal | ||||||
|  |           dhcp: false | ||||||
|  |           gateway: 10.42.101.1/24 | ||||||
|  |           dns: | ||||||
|  |             - 10.42.101.1 | ||||||
|  |           addresses: | ||||||
|  |             - 10.42.101.200/24 | ||||||
|  |  | ||||||
|  |   children: | ||||||
|  |  | ||||||
|  |     cluster: | ||||||
|  |       vars: | ||||||
|  |         skylab_targets: [cluster, datastore] | ||||||
|  |         skylab_compose_version: 3.8 | ||||||
|  |         skylab_compose_dir: "{{ skylab_state_dir }}/compose" | ||||||
|  |  | ||||||
|  |       hosts: | ||||||
|  |         pegasus:  # jupiter | ||||||
|  |           ansible_host: 10.42.101.100 | ||||||
|  |           skylab_hostname: pegasus.skylab.enp.one | ||||||
|  |           skylab_legacy_names: | ||||||
|  |             - jupiter.net.enp.one | ||||||
|  |             - jupiter.svr.local | ||||||
|  |           skylab_description: Arbiter Node | ||||||
|  |           skylab_cluster: | ||||||
|  |             address: | ||||||
|  |               access: 10.42.101.10/24 | ||||||
|  |               internal: 192.168.42.10/24 | ||||||
|  |             interface: | ||||||
|  |               access: bond0 | ||||||
|  |               internal: bond0.99 | ||||||
|  |           skylab_datastore_device: sdb | ||||||
|  |           skylab_networking: | ||||||
|  |             eno1: | ||||||
|  |               bond: bond0 | ||||||
|  |             eno2: | ||||||
|  |               bond: bond0 | ||||||
|  |             bond0: | ||||||
|  |               device: bond | ||||||
|  |               firewall: internal | ||||||
|  |               gateway: 10.42.101.1/24 | ||||||
|  |               dns: | ||||||
|  |                 - 10.42.101.1 | ||||||
|  |               addresses: | ||||||
|  |                 - 10.42.101.100/24 | ||||||
|  |                 - 192.168.255.255/32 | ||||||
|  |               dhcp: false | ||||||
|  |             bond0.99: | ||||||
|  |               device: vlan | ||||||
|  |               firewall: trusted | ||||||
|  |               addresses: | ||||||
|  |                 - 192.168.42.10/24 | ||||||
|  |               dhcp: false | ||||||
|  |  | ||||||
|  |         saturn:  # remus | ||||||
|  |           ansible_host: 10.42.101.110 | ||||||
|  |           skylab_hostname: saturn.skylab.enp.one | ||||||
|  |           skylab_legacy_names: | ||||||
|  |             - remus.net.enp.one | ||||||
|  |             - remus.svr.local | ||||||
|  |           skylab_description: Operational Node | ||||||
|  |           skylab_cluster: | ||||||
|  |             address: | ||||||
|  |               access: 10.42.101.11/24 | ||||||
|  |               internal: 192.168.42.20/24 | ||||||
|  |             interface: | ||||||
|  |               access: bond0 | ||||||
|  |               internal: bond0.99 | ||||||
|  |           skylab_networking: | ||||||
|  |             eno1: | ||||||
|  |               bond: bond0 | ||||||
|  |             eno2: | ||||||
|  |               bond: bond0 | ||||||
|  |             bond0: | ||||||
|  |               device: bond | ||||||
|  |               firewall: internal | ||||||
|  |               dhcp: false | ||||||
|  |               gateway: 10.42.101.1/24 | ||||||
|  |               addresses: | ||||||
|  |                 - 10.42.101.110/24 | ||||||
|  |                 - 192.168.255.255/32 | ||||||
|  |               dns: | ||||||
|  |                 - 10.42.101.1 | ||||||
|  |             bond0.99: | ||||||
|  |               device: vlan | ||||||
|  |               firewall: trusted | ||||||
|  |               dhcp: false | ||||||
|  |               addresses: | ||||||
|  |                 - 192.168.42.20/24 | ||||||
|  |  | ||||||
|  |         orion:  # romulus | ||||||
|  |           ansible_host: 10.42.101.120 | ||||||
|  |           skylab_hostname: orion.skylab.enp.one | ||||||
|  |           skylab_legacy_names: | ||||||
|  |             - romulus.net.enp.one | ||||||
|  |             - romulus.svr.local | ||||||
|  |           skylab_description: Operational Node | ||||||
|  |           skylab_cluster: | ||||||
|  |             address: | ||||||
|  |               access: 10.42.101.12/24 | ||||||
|  |               internal: 192.168.42.30/24 | ||||||
|  |             interface: | ||||||
|  |               access: bond0 | ||||||
|  |               internal: bond0.99 | ||||||
|  |           skylab_datastore_device: sdb | ||||||
|  |           skylab_networking: | ||||||
|  |             eno1: | ||||||
|  |               bond: bond0 | ||||||
|  |             eno2: | ||||||
|  |               bond: bond0 | ||||||
|  |             bond0: | ||||||
|  |               device: bond | ||||||
|  |               firewall: internal | ||||||
|  |               gateway: 10.42.101.1/24 | ||||||
|  |               dns: | ||||||
|  |                 - 10.42.101.1 | ||||||
|  |               addresses: | ||||||
|  |                 - 10.42.101.120/24 | ||||||
|  |                 - 192.168.255.255/32 | ||||||
|  |               dhcp: false | ||||||
|  |             bond0.99: | ||||||
|  |               device: vlan | ||||||
|  |               firewall: trusted | ||||||
|  |               addresses: | ||||||
|  |                 - 192.168.42.30/24 | ||||||
|  |               dhcp: false | ||||||
|  |  | ||||||
|  | en2: | ||||||
|  |   vars: | ||||||
|  |     skylab_location: DigitalOcean TOR1 | ||||||
|  |  | ||||||
|  |   hosts: | ||||||
|  |     hubble: | ||||||
|  |       ansible_host: en2a.enp.one | ||||||
|  |       skylab_hostname: hubble.en2.enp.one | ||||||
|  |       skylab_description: Cloud Web Server | ||||||
|  |       skylab_targets: [cloud] | ||||||
| @@ -1,175 +1,51 @@ | |||||||
| --- | --- | ||||||
| all: |  | ||||||
|   children: |  | ||||||
|     en1: {} |  | ||||||
|  |  | ||||||
|   vars: |  | ||||||
|     skylab_pip_version: 19.3.1 |  | ||||||
|     ansible_user: ansible |  | ||||||
|     ansible_ssh_common_args: "-o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes" |  | ||||||
|  |  | ||||||
| workstation: |  | ||||||
|   hosts: |  | ||||||
|     voyager: |  | ||||||
|       skylab_description: Personal Workstation |  | ||||||
|       skylab_hostname: voyager.skylab.enp.one |  | ||||||
|       skylab_targets: [workstation] |  | ||||||
|  |  | ||||||
| en1: | en1: | ||||||
|  |  | ||||||
|   vars: |   vars: | ||||||
|     skylab_location: Newton MA |     skylab_location: Cambridge | ||||||
|     skylab_dashboard: info.en1.local |  | ||||||
|     # gross hack for now, will be refactored later |  | ||||||
|     _skylab_adguard_nat_rule: 9 |  | ||||||
|  |  | ||||||
|   hosts: |  | ||||||
|     core: |  | ||||||
|       ansible_host: 10.42.101.1 |  | ||||||
|       ansible_port: 4242 |  | ||||||
|       ansible_network_os: edgeos |  | ||||||
|       skylab_description: EN1 Core Router |  | ||||||
|  |  | ||||||
|     iridium: |  | ||||||
|       ansible_host: 10.42.101.200 |  | ||||||
|       skylab_description: Local Monitor Node |  | ||||||
|       skylab_hostname: iridium.skylab.enp.one |  | ||||||
|       skylab_targets: [network] |  | ||||||
|       skylab_networking: |  | ||||||
|         enp4s0: |  | ||||||
|           firewall: internal |  | ||||||
|           dhcp: false |  | ||||||
|           gateway: 10.42.101.1/24 |  | ||||||
|           dns: |  | ||||||
|             - 10.42.101.1 |  | ||||||
|           addresses: |  | ||||||
|             - 10.42.101.200/24 |  | ||||||
|  |  | ||||||
|   children: |   children: | ||||||
|  |     domain: | ||||||
|  |       children: | ||||||
|  |  | ||||||
|     cluster: |         cluster: | ||||||
|       vars: |           hosts: | ||||||
|         skylab_targets: [cluster, datastore] |             canaveral: | ||||||
|         skylab_compose_version: 3.8 |               ansible_host: 10.42.101.10 | ||||||
|         skylab_compose_dir: "{{ skylab_state_dir }}/compose" |               skylab_description: Compute and Storage Node | ||||||
|  |             baikonur: | ||||||
|  |               ansible_host: 10.42.101.11 | ||||||
|  |               skylab_description: Compute and Storage Node | ||||||
|  |             vandenberg: | ||||||
|  |               ansible_host: 10.42.101.12 | ||||||
|  |               skylab_description: Compute and Storage Node | ||||||
|  |             andoya: | ||||||
|  |               ansible_host: 10.42.101.13 | ||||||
|  |               skylab_description: Auxilary Compute Node | ||||||
|  |             jiuquan: | ||||||
|  |               ansible_host: 10.42.101.14 | ||||||
|  |               skylab_description: Auxilary Compute Node | ||||||
|  |  | ||||||
|  |         datastore: | ||||||
|  |           hosts: | ||||||
|  |             canaveral: | ||||||
|  |               skylab_datastore_block: /dev/sda | ||||||
|  |             baikonur: | ||||||
|  |               skylab_datastore_block: /dev/sda | ||||||
|  |             vandenberg: | ||||||
|  |               skylab_datastore_block: /dev/sda | ||||||
|  |  | ||||||
|  |         hosts: | ||||||
|  |           3d-printer: {} | ||||||
|  |           mediastore: {} | ||||||
|  |           backstore: {} | ||||||
|  |  | ||||||
|  |     local: | ||||||
|       hosts: |       hosts: | ||||||
|         pegasus:  # jupiter |         core: {} | ||||||
|           ansible_host: 10.42.101.100 |         switch-1: {} | ||||||
|           skylab_hostname: pegasus.skylab.enp.one |         switch-2: {} | ||||||
|           skylab_legacy_names: |         wap-1: {} | ||||||
|             - jupiter.net.enp.one |         wap-2: {} | ||||||
|             - jupiter.svr.local |         wap-3: {} | ||||||
|           skylab_description: Arbiter Node |         printer: {} | ||||||
|           skylab_cluster: |  | ||||||
|             address: |  | ||||||
|               access: 10.42.101.10/24 |  | ||||||
|               internal: 192.168.42.10/24 |  | ||||||
|             interface: |  | ||||||
|               access: bond0 |  | ||||||
|               internal: bond0.99 |  | ||||||
|           skylab_datastore_device: sdb |  | ||||||
|           skylab_networking: |  | ||||||
|             eno1: |  | ||||||
|               bond: bond0 |  | ||||||
|             eno2: |  | ||||||
|               bond: bond0 |  | ||||||
|             bond0: |  | ||||||
|               device: bond |  | ||||||
|               firewall: internal |  | ||||||
|               gateway: 10.42.101.1/24 |  | ||||||
|               dns: |  | ||||||
|                 - 10.42.101.1 |  | ||||||
|               addresses: |  | ||||||
|                 - 10.42.101.100/24 |  | ||||||
|                 - 192.168.255.255/32 |  | ||||||
|               dhcp: false |  | ||||||
|             bond0.99: |  | ||||||
|               device: vlan |  | ||||||
|               firewall: trusted |  | ||||||
|               addresses: |  | ||||||
|                 - 192.168.42.10/24 |  | ||||||
|               dhcp: false |  | ||||||
|  |  | ||||||
|         saturn:  # remus |  | ||||||
|           ansible_host: 10.42.101.110 |  | ||||||
|           skylab_hostname: saturn.skylab.enp.one |  | ||||||
|           skylab_legacy_names: |  | ||||||
|             - remus.net.enp.one |  | ||||||
|             - remus.svr.local |  | ||||||
|           skylab_description: Operational Node |  | ||||||
|           skylab_cluster: |  | ||||||
|             address: |  | ||||||
|               access: 10.42.101.11/24 |  | ||||||
|               internal: 192.168.42.20/24 |  | ||||||
|             interface: |  | ||||||
|               access: bond0 |  | ||||||
|               internal: bond0.99 |  | ||||||
|           skylab_networking: |  | ||||||
|             eno1: |  | ||||||
|               bond: bond0 |  | ||||||
|             eno2: |  | ||||||
|               bond: bond0 |  | ||||||
|             bond0: |  | ||||||
|               device: bond |  | ||||||
|               firewall: internal |  | ||||||
|               dhcp: false |  | ||||||
|               gateway: 10.42.101.1/24 |  | ||||||
|               addresses: |  | ||||||
|                 - 10.42.101.110/24 |  | ||||||
|                 - 192.168.255.255/32 |  | ||||||
|               dns: |  | ||||||
|                 - 10.42.101.1 |  | ||||||
|             bond0.99: |  | ||||||
|               device: vlan |  | ||||||
|               firewall: trusted |  | ||||||
|               dhcp: false |  | ||||||
|               addresses: |  | ||||||
|                 - 192.168.42.20/24 |  | ||||||
|  |  | ||||||
|         orion:  # romulus |  | ||||||
|           ansible_host: 10.42.101.120 |  | ||||||
|           skylab_hostname: orion.skylab.enp.one |  | ||||||
|           skylab_legacy_names: |  | ||||||
|             - romulus.net.enp.one |  | ||||||
|             - romulus.svr.local |  | ||||||
|           skylab_description: Operational Node |  | ||||||
|           skylab_cluster: |  | ||||||
|             address: |  | ||||||
|               access: 10.42.101.12/24 |  | ||||||
|               internal: 192.168.42.30/24 |  | ||||||
|             interface: |  | ||||||
|               access: bond0 |  | ||||||
|               internal: bond0.99 |  | ||||||
|           skylab_datastore_device: sdb |  | ||||||
|           skylab_networking: |  | ||||||
|             eno1: |  | ||||||
|               bond: bond0 |  | ||||||
|             eno2: |  | ||||||
|               bond: bond0 |  | ||||||
|             bond0: |  | ||||||
|               device: bond |  | ||||||
|               firewall: internal |  | ||||||
|               gateway: 10.42.101.1/24 |  | ||||||
|               dns: |  | ||||||
|                 - 10.42.101.1 |  | ||||||
|               addresses: |  | ||||||
|                 - 10.42.101.120/24 |  | ||||||
|                 - 192.168.255.255/32 |  | ||||||
|               dhcp: false |  | ||||||
|             bond0.99: |  | ||||||
|               device: vlan |  | ||||||
|               firewall: trusted |  | ||||||
|               addresses: |  | ||||||
|                 - 192.168.42.30/24 |  | ||||||
|               dhcp: false |  | ||||||
|  |  | ||||||
| en2: |  | ||||||
|   vars: |  | ||||||
|     skylab_location: DigitalOcean TOR1 |  | ||||||
|  |  | ||||||
|   hosts: |  | ||||||
|     hubble: |  | ||||||
|       ansible_host: en2a.enp.one |  | ||||||
|       skylab_hostname: hubble.en2.enp.one |  | ||||||
|       skylab_description: Cloud Web Server |  | ||||||
|       skylab_targets: [cloud] |  | ||||||
|   | |||||||
| @@ -1,4 +1,8 @@ | |||||||
| --- | --- | ||||||
|  | ansible_user: ansible | ||||||
|  |  | ||||||
|  | ansible_port: 4242 | ||||||
|  |  | ||||||
| skylab_state_dir: /var/lib/skylab | skylab_state_dir: /var/lib/skylab | ||||||
|  |  | ||||||
| skylab_ansible_venv: "{{ skylab_state_dir }}/ansible-runtime" | skylab_ansible_venv: "{{ skylab_state_dir }}/ansible-runtime" | ||||||
|   | |||||||
| @@ -168,6 +168,18 @@ | |||||||
|       setype: ssh_port_t |       setype: ssh_port_t | ||||||
|       state: present |       state: present | ||||||
|  |  | ||||||
|  |   - name: Install Firewalld | ||||||
|  |     become: true | ||||||
|  |     ansible.builtin.dnf: | ||||||
|  |       name: firewalld | ||||||
|  |       state: present | ||||||
|  |  | ||||||
|  |   - name: Enable Firewalld | ||||||
|  |     become: true | ||||||
|  |     ansible.builtin.service: | ||||||
|  |       name: firewalld | ||||||
|  |       enabled: true | ||||||
|  |  | ||||||
|   - name: Grant SSHD firewall access to the mgmt port |   - name: Grant SSHD firewall access to the mgmt port | ||||||
|     become: true |     become: true | ||||||
|     ansible.posix.firewalld: |     ansible.posix.firewalld: | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ resource "digitalocean_record" "enp_en1" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "A" |   type   = "A" | ||||||
|   name   = "en1" |   name   = "en1" | ||||||
|   value  = "24.2.156.189" |   value  = digitalocean_record.enp.value | ||||||
|   ttl    = 3600 |   ttl    = 3600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -28,7 +28,7 @@ resource "digitalocean_record" "enp_vcs" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "vcs" |   name   = "vcs" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 10600 |   ttl    = 10600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -36,7 +36,7 @@ resource "digitalocean_record" "enp_ssv" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "ssv" |   name   = "ssv" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 10600 |   ttl    = 10600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -44,7 +44,7 @@ resource "digitalocean_record" "enp_pms" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "pms" |   name   = "pms" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 10600 |   ttl    = 10600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -52,7 +52,7 @@ resource "digitalocean_record" "enp_cdn" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "cdn" |   name   = "cdn" | ||||||
|   value  = "en2-cdn.nyc3.cdn.digitaloceanspaces.com." |   value  = "${digitalocean_cdn.enp.endpoint}." | ||||||
|   ttl    = 3600 |   ttl    = 3600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -60,7 +60,7 @@ resource "digitalocean_record" "enp_vpn" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "vpn" |   name   = "vpn" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 10600 |   ttl    = 10600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -68,7 +68,7 @@ resource "digitalocean_record" "enp_www" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "www" |   name   = "www" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 10600 |   ttl    = 10600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -76,7 +76,7 @@ resource "digitalocean_record" "enp_sso" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "sso" |   name   = "sso" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 10600 |   ttl    = 10600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -84,15 +84,7 @@ resource "digitalocean_record" "enp_img" { | |||||||
|   domain = digitalocean_domain.enp.id |   domain = digitalocean_domain.enp.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "img" |   name   = "img" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 10600 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| resource "digitalocean_record" "enp_pdb" { |  | ||||||
|   domain = digitalocean_domain.enp.id |  | ||||||
|   type   = "CNAME" |  | ||||||
|   name   = "pdb" |  | ||||||
|   value  = "en1.enp.one." |  | ||||||
|   ttl    = 10600 |   ttl    = 10600 | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ resource "digitalocean_record" "enpaul" { | |||||||
|   domain = digitalocean_domain.enpaul.id |   domain = digitalocean_domain.enpaul.id | ||||||
|   type   = "A" |   type   = "A" | ||||||
|   name   = "@" |   name   = "@" | ||||||
|   value  = "24.2.156.189" |   value  = digitalocean_record.enp.value | ||||||
|   ttl    = 3600 |   ttl    = 3600 | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ resource "digitalocean_record" "scipiocapital" { | |||||||
|   domain = digitalocean_domain.scipiocapital.id |   domain = digitalocean_domain.scipiocapital.id | ||||||
|   type   = "A" |   type   = "A" | ||||||
|   name   = "@" |   name   = "@" | ||||||
|   value  = "24.2.156.189" |   value  = digitalocean_record.enp.value | ||||||
|   ttl    = 3600 |   ttl    = 3600 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -16,7 +16,7 @@ resource "digitalocean_record" "scipiocapital_app" { | |||||||
|   domain = digitalocean_domain.scipiocapital.id |   domain = digitalocean_domain.scipiocapital.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "app" |   name   = "app" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 43200 |   ttl    = 43200 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -24,7 +24,7 @@ resource "digitalocean_record" "scipiocapital_notify" { | |||||||
|   domain = digitalocean_domain.scipiocapital.id |   domain = digitalocean_domain.scipiocapital.id | ||||||
|   type   = "CNAME" |   type   = "CNAME" | ||||||
|   name   = "notify" |   name   = "notify" | ||||||
|   value  = "en1.enp.one." |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|   ttl    = 43200 |   ttl    = 43200 | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -36,6 +36,13 @@ resource "digitalocean_record" "scipiocapital_docs" { | |||||||
|   ttl    = 43200 |   ttl    = 43200 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | resource "digitalocean_record" "scipiocapital_auth" { | ||||||
|  |   domain = digitalocean_domain.scipiocapital.id | ||||||
|  |   type   = "CNAME" | ||||||
|  |   name   = "auth" | ||||||
|  |   value  = "${digitalocean_record.enp_en1.fqdn}." | ||||||
|  |   ttl    = 43200 | ||||||
|  | } | ||||||
|  |  | ||||||
| # ========================================================================== | # ========================================================================== | ||||||
| # Standard DO configuration for all managed domains, includes | # Standard DO configuration for all managed domains, includes | ||||||
|   | |||||||
							
								
								
									
										13
									
								
								skylab/infra/playbooks/terraform/project.scipio.tf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								skylab/infra/playbooks/terraform/project.scipio.tf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | |||||||
|  | resource "digitalocean_project" "scipio" { | ||||||
|  |   name        = "Scipio Capital" | ||||||
|  |   description = "Eventual home of Scipio Capital systems" | ||||||
|  |   purpose     = "Service or API" | ||||||
|  |   environment = "Production" | ||||||
|  | } | ||||||
|  |  | ||||||
|  | resource "digitalocean_project_resources" "scipio" { | ||||||
|  |   project = digitalocean_project.scipio.id | ||||||
|  |   resources = [ | ||||||
|  |     digitalocean_domain.scipiocapital.urn, | ||||||
|  |   ] | ||||||
|  | } | ||||||
							
								
								
									
										17
									
								
								skylab/infra/playbooks/terraform/project.skylab.tf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								skylab/infra/playbooks/terraform/project.skylab.tf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | resource "digitalocean_project" "skylab" { | ||||||
|  |   name        = "SkyLab" | ||||||
|  |   description = "SkyLab resources, with emphasis on Sky" | ||||||
|  |   purpose     = "Operational / Developer tooling" | ||||||
|  |   environment = "Development" | ||||||
|  |   is_default  = true | ||||||
|  | } | ||||||
|  |  | ||||||
|  | resource "digitalocean_project_resources" "skylab" { | ||||||
|  |   project = digitalocean_project.skylab.id | ||||||
|  |   resources = [ | ||||||
|  |     digitalocean_domain.allaroundhere.urn, | ||||||
|  |     digitalocean_domain.enpaul.urn, | ||||||
|  |     digitalocean_domain.enp.urn, | ||||||
|  |     digitalocean_spaces_bucket.enp_cdn.urn | ||||||
|  |   ] | ||||||
|  | } | ||||||
							
								
								
									
										18
									
								
								skylab/infra/playbooks/terraform/spaces.cdn.tf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								skylab/infra/playbooks/terraform/spaces.cdn.tf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | resource "digitalocean_spaces_bucket" "enp_cdn" { | ||||||
|  |   name          = "en2-cdn" | ||||||
|  |   region        = "nyc3" | ||||||
|  |   acl           = "public-read" | ||||||
|  |   force_destroy = false | ||||||
|  | } | ||||||
|  |  | ||||||
|  | resource "digitalocean_certificate" "enp_cdn" { | ||||||
|  |   name    = "CDN" | ||||||
|  |   type    = "lets_encrypt" | ||||||
|  |   domains = ["cdn.enp.one", "enp.one"] | ||||||
|  | } | ||||||
|  |  | ||||||
|  | resource "digitalocean_cdn" "enp" { | ||||||
|  |   origin           = digitalocean_spaces_bucket.enp_cdn.bucket_domain_name | ||||||
|  |   custom_domain    = "cdn.enp.one" | ||||||
|  |   certificate_name = digitalocean_certificate.enp_cdn.name | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user