.
This commit is contained in:
12
salt/states/podman/files/registries.conf
Normal file
12
salt/states/podman/files/registries.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
unqualified-search-registries = ["registry.opensuse.org", "docker.io"]
|
||||
|
||||
|
||||
[[registry]]
|
||||
prefix = "docker.io"
|
||||
location = "docker.io"
|
||||
insecure = false
|
||||
blocked = false
|
||||
|
||||
[[registry.mirror]]
|
||||
location = "localhost:5000"
|
||||
insecure = true
|
11
salt/states/podman/init.sls
Normal file
11
salt/states/podman/init.sls
Normal file
@@ -0,0 +1,11 @@
|
||||
Install podman:
|
||||
pkg.installed:
|
||||
- name: podman
|
||||
|
||||
Configure local registry repository:
|
||||
file.managed:
|
||||
- name: /etc/containers/registries.conf
|
||||
- source: salt://podman/files/registries.conf
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: "0644"
|
Reference in New Issue
Block a user