-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from barrelmaker97/rename-roles
Rename roles and move namespace creation to workload deployment
- Loading branch information
Showing
42 changed files
with
86 additions
and
80 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 was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
--- | ||
- name: Deploy Workloads | ||
- name: Deploy core services | ||
hosts: localhost | ||
gather_facts: false | ||
roles: | ||
- cluster_workloads | ||
- core |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# vim: ft=yaml | ||
--- | ||
apiVersion: v1 | ||
kind: Config | ||
preferences: {} | ||
current-context: {{ cluster_user }}-{{ cluster_host }} | ||
clusters: | ||
- name: {{ cluster_host }} | ||
cluster: | ||
certificate-authority: {{ user_api_crt }} | ||
server: https://kube.{{ cluster_domain }}:{{ cluster_port }} | ||
users: | ||
- name: {{ cluster_user }} | ||
user: | ||
client-certificate: {{ user_crt }} | ||
client-key: {{ user_key }} | ||
contexts: | ||
- name: {{ cluster_user }}-{{ cluster_host }} | ||
context: | ||
cluster: {{ cluster_host }} | ||
user: {{ cluster_user }} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
user_kube_dir: "{{ ansible_env.HOME }}/.kube" | ||
user_key: "{{ user_kube_dir }}/{{ cluster_user }}.key" | ||
user_csr: "{{ user_kube_dir }}/{{ cluster_user }}.csr" | ||
user_crt: "{{ user_kube_dir }}/{{ cluster_user }}.crt" | ||
user_api_crt: "{{ user_kube_dir }}/cluster.crt" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
roles/cluster_workloads/tasks/main.yaml → roles/workloads/tasks/main.yaml
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Setup for cluster creation | ||
hosts: localhost | ||
roles: | ||
- setup |
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,9 @@ | ||
--- | ||
- name: Set Talos | ||
import_playbook: talos_setup.yaml | ||
- name: Setup Cluster User | ||
import_playbook: cluster_user.yaml | ||
- name: Setup Cluster Services | ||
import_playbook: cluster_services.yaml | ||
- name: Deploy Workloads | ||
import_playbook: cluster_workloads.yaml | ||
- name: Setup for cluster creation | ||
import_playbook: setup.yaml | ||
- name: Create cluster user | ||
import_playbook: user.yaml | ||
- name: Deploy core services | ||
import_playbook: core.yaml | ||
- name: Deploy workloads | ||
import_playbook: workloads.yaml |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Create cluster user | ||
hosts: localhost | ||
roles: | ||
- user |
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,6 +1,6 @@ | ||
--- | ||
- name: Setup Cluster Services | ||
- name: Deploy workloads | ||
hosts: localhost | ||
gather_facts: false | ||
roles: | ||
- cluster_services | ||
- workloads |