stuff
This commit is contained in:
@@ -33,7 +33,7 @@ common-installed:
|
||||
- python3-pip
|
||||
- python3-dev
|
||||
- python3-pyinotify
|
||||
- python3-m2crypto
|
||||
- python-m2crypto
|
||||
- python3-apt
|
||||
- lockfile-progs
|
||||
- virt-what
|
||||
|
||||
22
base/packages/repo/debian-sid.sls
Normal file
22
base/packages/repo/debian-sid.sls
Normal file
@@ -0,0 +1,22 @@
|
||||
{%-
|
||||
set cache_url = salt['pillar.get'](
|
||||
'services:apt-cache',
|
||||
default=''
|
||||
)
|
||||
%}
|
||||
|
||||
#{% if salt['pillar.get']('os:release', default = 'buster') != 'bullseye' %}
|
||||
|
||||
repo_debian-sid:
|
||||
pkgrepo.managed:
|
||||
- name: 'deb http://{{ cache_url }}deb.debian.org/debian sid main contrib'
|
||||
- file: /etc/apt/sources.list.d/debian-sid.list
|
||||
- clean_file: True
|
||||
|
||||
#{% else %}
|
||||
|
||||
#repo_debian-sid-absent:
|
||||
# file.absent:
|
||||
# - name: /etc/apt/sources.list.d/debian-sid.list
|
||||
|
||||
#{% endif %}
|
||||
@@ -1,7 +1,8 @@
|
||||
{% set def_rel = 'bullseye' %}
|
||||
{% if grains['oscodename'] != 'bullseye' and salt['pillar.get']('os:release', default = False) != 'bullseye' %}
|
||||
{% set def_rel = 'buster' %}
|
||||
{% endif %}
|
||||
|
||||
{%- set def_rel = 'bullseye' %}
|
||||
{%- if salt['pillar.get']('os:release', default = False) %}
|
||||
{%- def_rel = salt['pillar.get']('os:release', default = False) %}
|
||||
{%- endif %}
|
||||
|
||||
etc_apt_release:
|
||||
file.managed:
|
||||
|
||||
@@ -5,7 +5,7 @@ include:
|
||||
- .repo.kubernetes
|
||||
- .cri-tools
|
||||
|
||||
{% set k8s_v = "1.23.14-00" %}
|
||||
{% set k8s_v = "1.26.00-00" %}
|
||||
|
||||
k8s_pkgs-kubelet:
|
||||
pkg.installed:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# vim: ft=yaml
|
||||
---
|
||||
include:
|
||||
- base.packages.repo.debian-bullseye
|
||||
- base.packages.repo.debian-sid
|
||||
- .cri-tools
|
||||
|
||||
containerd_pkgs:
|
||||
@@ -10,8 +10,10 @@ containerd_pkgs:
|
||||
- pkgs:
|
||||
- containerd
|
||||
- containernetworking-plugins
|
||||
- crun
|
||||
- runc
|
||||
- require:
|
||||
- pkgrepo: repo_debian-bullseye
|
||||
- pkgrepo: repo_debian-sid
|
||||
|
||||
/etc/containerd/config.toml:
|
||||
file.managed:
|
||||
|
||||
@@ -4,14 +4,15 @@ version = 2
|
||||
level = "warn"
|
||||
|
||||
[plugins]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||
systemdCgroup = true
|
||||
systemd_cgroup = true
|
||||
|
||||
[plugins."io.containerd.grpc.v1.cri"]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd]
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.default_runtime]
|
||||
runtime_type = "io.containerd.runc.v2"
|
||||
snapshoter = "overlayfs"
|
||||
default_runtime_name = "runc"
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||
runtime_type = "io.containerd.runc.v2"
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||
SystemdCgroup = true
|
||||
[plugins."io.containerd.grpc.v1.cri".cni]
|
||||
bin_dir = "/opt/cni/bin"
|
||||
conf_dir = "/etc/cni/net.d"
|
||||
@@ -21,10 +22,10 @@ version = 2
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."cr.lan"]
|
||||
endpoint = ["http://cr.lan"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
|
||||
endpoint = [ "http://dr-mirror.lan", "https://registry-1.docker.io"]
|
||||
#[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
|
||||
# endpoint = [ "http://dr-mirror.lan", "https://registry-1.docker.io"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs."cr.lan".tls]
|
||||
insecure_skip_verify = true
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.configs."docker.io".tls]
|
||||
insecure_skip_verify = true
|
||||
# [plugins."io.containerd.grpc.v1.cri".registry.configs."docker.io".tls]
|
||||
# insecure_skip_verify = true
|
||||
|
||||
@@ -2,4 +2,5 @@ include:
|
||||
- .repo
|
||||
- .packages
|
||||
- .cron
|
||||
- .systemd
|
||||
|
||||
|
||||
0
os/armbian/systemd.sls
Normal file
0
os/armbian/systemd.sls
Normal file
Reference in New Issue
Block a user