-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option for custom registries / mirrors (#382)
- Loading branch information
1 parent
9b6d551
commit 505c2ee
Showing
4 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
# Indicates whether custom registries for k3s should be configured | ||
# Possible values: | ||
# - present | ||
# - absent | ||
state: present |
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,17 @@ | ||
--- | ||
|
||
- name: Create directory /etc/rancher/k3s | ||
file: | ||
path: "/etc/{{ item }}" | ||
state: directory | ||
mode: '0755' | ||
loop: | ||
- rancher | ||
- rancher/k3s | ||
|
||
- name: Insert registries into /etc/rancher/k3s/registries.yaml | ||
blockinfile: | ||
path: /etc/rancher/k3s/registries.yaml | ||
block: "{{ custom_registries_yaml }}" | ||
mode: '0600' | ||
create: true |
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