-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor 2 * add assertion for ansible version Added an assertion to check for Ansible version prior to running other tasks. This is due to the Ubuntu AMI failing with the standard Ansible install (apt install ansible) as the version in apt is 2.9.6 - which fails due to a missing critical update packaged into 2.9.8. If the user runs the script with anything earlier than 2.9.8, it will fail and request that they upgrade Ansible. * Revert "add assertion for ansible version" This reverts commit 486df1e. * Add changes from review Co-authored-by: Michael DAmato <[email protected]> Co-authored-by: Tucker Blue <[email protected]>
- Loading branch information
1 parent
19acdbd
commit 1fd346d
Showing
25 changed files
with
454 additions
and
260 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
--- | ||
# Primary RKE2 agent configuration parameters. | ||
# See https://docs.rke2.io/install/install_options/agent_config/ for more information. | ||
|
||
rke2_config: | ||
selinux: true | ||
profile: cis-1.5 | ||
|
||
# node-label | ||
rke2_node_labels: | ||
- "ansible-provisioned-agent=true" | ||
|
||
# kubelet-arg | ||
rke2_kubelet_args: | ||
- "feature-gates=DynamicKubeletConfig=false" | ||
# Primary RKE2 agent configuration parameters. Remove the curly braces ( {} ) and add your configuration. | ||
# See https://docs.rke2.io/install/install_options/linux_agent_config/ for all configuration options. | ||
rke2_config: {} | ||
# debug: false | ||
|
||
# See https://docs.rke2.io/install/containerd_registry_configuration/ | ||
# Add a registry configuration file by specifying the file path on the control host | ||
# registry_config_file_path: "{{ playbook_dir }}/sample_files/registries.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,17 @@ | ||
--- | ||
# Primary RKE2 server configuration parameters. | ||
# See https://docs.rke2.io/install/install_options/server_config/ for more information. | ||
|
||
rke2_config: | ||
selinux: true | ||
write-kubeconfig-mode: "0640" | ||
profile: cis-1.5 | ||
|
||
# node-label | ||
rke2_node_labels: | ||
- "ansible-provisioned-server=true" | ||
|
||
# kube-apiserver-arg | ||
rke2_kube_api_server_args: | ||
- "tls-min-version=VersionTLS12" | ||
|
||
# kube-scheduler-arg | ||
rke2_kube_scheduler_args: | ||
- "tls-min-version=VersionTLS12" | ||
|
||
# kube-controller-manager-arg | ||
rke2_kube_controller_manager_args: | ||
- "tls-min-version=VersionTLS12" | ||
|
||
# kubelet-arg | ||
rke2_kubelet_args: | ||
- "feature-gates=DynamicKubeletConfig=false" | ||
# Primary RKE2 server configuration parameters. Remove the curly braces ( {} ) and add your configuration. | ||
# See https://docs.rke2.io/install/install_options/server_config/ for all configuration options. | ||
rke2_config: {} | ||
# debug: false | ||
|
||
# See https://kubernetes.io/docs/tasks/debug-application-cluster/audit/ | ||
# Add a policy configuration file by specifying the file path on the control host | ||
# audit_policy_config_file_path: "{{ playbook_dir }}/sample_files/audit-policy.yaml" | ||
|
||
# See https://docs.rke2.io/install/containerd_registry_configuration/ | ||
# Add a registry configuration file by specifying the file path on the control host | ||
# registry_config_file_path: "{{ playbook_dir }}/sample_files/registries.yaml" | ||
|
||
# See https://docs.rke2.io/helm/#automatically-deploying-manifests-and-helm-charts | ||
# Add manifest files by specifying the directory path on the control host | ||
# manifest_config_file_path: "{{ playbook_dir }}/sample_files/manifest/" |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
- name: Add manifest addons files | ||
copy: | ||
src: "{{ manifest_config_file_path }}" | ||
dest: "/var/lib/rancher/rke2/server/manifests/" | ||
mode: '0640' | ||
owner: root | ||
group: root |
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
- name: "Check for images tar.gz in {{ playbook_dir }}/tarball_install/rke2-images.linux-amd64.tar.gz" | ||
stat: | ||
path: "{{ playbook_dir }}/tarball_install/rke2-images.linux-amd64.tar.gz" | ||
register: got_images_gz | ||
delegate_to: 127.0.0.1 | ||
become: no | ||
|
||
- name: "Check for images tar.zst in {{ playbook_dir }}/tarball_install/rke2-images.linux-amd64.tar.zst" | ||
stat: | ||
path: "{{ playbook_dir }}/tarball_install/rke2-images.linux-amd64.tar.zst" | ||
register: got_images_zst | ||
delegate_to: 127.0.0.1 | ||
become: no | ||
|
||
- name: Add images tar.gz to needed directory if provided | ||
copy: | ||
src: "{{ playbook_dir }}/tarball_install/rke2-images.linux-amd64.tar.gz" | ||
dest: /var/lib/rancher/rke2/agent/images/ | ||
mode: '0644' | ||
when: got_images_gz.stat.exists | ||
|
||
- name: Add images tar.zst to needed directory if provided | ||
copy: | ||
src: "{{ playbook_dir }}/tarball_install/rke2-images.linux-amd64.tar.zst" | ||
dest: /var/lib/rancher/rke2/agent/images/ | ||
mode: '0644' | ||
when: got_images_zst.stat.exists |
Oops, something went wrong.