.
This commit is contained in:
parent
568b48a1d0
commit
b00bce2d2f
@ -52,86 +52,3 @@ If you make changes in your `salt/pillars/local.sls` you can run the following t
|
||||
```
|
||||
./update.sh --salt
|
||||
```
|
||||
|
||||
## Components - Salt States
|
||||
[chrony](#chrony)
|
||||
[dnsmasq](#dnsmasq)
|
||||
[docker](#docker)
|
||||
[firewalld](#firewalld)
|
||||
[hostapd](#hostapd)
|
||||
[hosts](#hosts)
|
||||
[mariadb](#mariadb)
|
||||
[nfs-server](#nfs-server)
|
||||
[nginx](#nginx)
|
||||
[packages](#packages)
|
||||
[podman](#podman)
|
||||
[pxe](#pxe)
|
||||
[rancher](#rancher)
|
||||
[remote-desktop](#remote-desktop)
|
||||
[rmt](#rmt)
|
||||
[ssh](#ssh)
|
||||
[tlu-harvester](#tlu-harvester)
|
||||
[vlan](#vlan)
|
||||
[wol](#wol)
|
||||
|
||||
<a name="chrony"/>
|
||||
### chrony
|
||||
Chrony is an implementation of the Network Time Protocol (NTP).
|
||||
This step will install chrony and configure upstream pools and start serving NTP on internal networks
|
||||
```
|
||||
# salt/pillars/chrony.sls
|
||||
chrony:
|
||||
pool:
|
||||
- 0.se.pool.ntp.org
|
||||
- 1.se.pool.ntp.org
|
||||
- 2.se.pool.ntp.org
|
||||
- 3.se.pool.ntp.org
|
||||
```
|
||||
<a name="dnsmasq"/>
|
||||
### dnsmasq
|
||||
Serves dhcp and dns for internal network
|
||||
This step will install dnsmasq and configure dhcp for all internal networks defined in `salt/pillars/network.sls`
|
||||
It will also configure the pxe next step, etc.
|
||||
|
||||
<a name="docker"/>
|
||||
### docker
|
||||
This step will create podman container running a local docker registry pull through instance, also a systemd service called `registry-container.service` is created.
|
||||
```
|
||||
# salt/pillars/docker.sls
|
||||
docker:
|
||||
username:
|
||||
access_token:
|
||||
url: docker.io/registry
|
||||
tag: 2.7.1
|
||||
```
|
||||
|
||||
<a name="firewalld"/>
|
||||
### firewalld
|
||||
Configures firewalld services and networks
|
||||
|
||||
<a name="hostapd"/>
|
||||
Installs and configures hostapd to use the wireless interface as a access point
|
||||
```
|
||||
# salt/pillars/hostapd.sls
|
||||
hostapd:
|
||||
country_code: SE
|
||||
ssid: Transportable Lab Unit
|
||||
channel: 6
|
||||
wpa_passphrase: linux2linux
|
||||
```
|
||||
|
||||
<a name="hosts"/>
|
||||
### hosts
|
||||
Configures the hostname and `/etc/hosts`file so [dnsmasq](#dnsmask) has correct information
|
||||
|
||||
<a name="mariadb"/>
|
||||
### mariadb
|
||||
Installs and configures mariadb, [rmt](#rmt) needs a database
|
||||
```
|
||||
# salt/pillars/mysql.sls
|
||||
mysql:
|
||||
root_password: linux
|
||||
```
|
||||
|
||||
<a href="nfs-server"/>
|
||||
### nfs-server
|
||||
|
77
doc/salt-states.md
Normal file
77
doc/salt-states.md
Normal file
@ -0,0 +1,77 @@
|
||||
# Components - Salt States
|
||||
- [chrony](#chrony)
|
||||
- [dnsmasq](#dnsmasq)
|
||||
- [docker](#docker)
|
||||
- [firewalld](#firewalld)
|
||||
- [hostapd](#hostapd)
|
||||
- [hosts](#hosts)
|
||||
- [mariadb](#mariadb)
|
||||
- [nfs-server](#nfs-server)
|
||||
- [nginx](#nginx)
|
||||
- [packages](#packages)
|
||||
- [podman](#podman)
|
||||
- [pxe](#pxe)
|
||||
- [rancher](#rancher)
|
||||
- [remote-desktop](#remote-desktop)
|
||||
- [rmt](#rmt)
|
||||
- [ssh](#ssh)
|
||||
- [tlu-harvester](#tlu-harvester)
|
||||
- [vlan](#vlan)
|
||||
- [wol](#wol)
|
||||
|
||||
## chrony
|
||||
Chrony is an implementation of the Network Time Protocol (NTP).
|
||||
This step will install chrony and configure upstream pools and start serving NTP on internal networks
|
||||
```
|
||||
# salt/pillars/chrony.sls
|
||||
chrony:
|
||||
pool:
|
||||
- 0.se.pool.ntp.org
|
||||
- 1.se.pool.ntp.org
|
||||
- 2.se.pool.ntp.org
|
||||
- 3.se.pool.ntp.org
|
||||
```
|
||||
|
||||
## dnsmasq
|
||||
Serves dhcp and dns for internal network
|
||||
This step will install dnsmasq and configure dhcp for all internal networks defined in `salt/pillars/network.sls`
|
||||
It will also configure the pxe next step, etc.
|
||||
|
||||
## docker
|
||||
This step will create podman container running a local docker registry pull through instance, also a systemd service called `registry-container.service` is created.
|
||||
```
|
||||
# salt/pillars/docker.sls
|
||||
docker:
|
||||
username:
|
||||
access_token:
|
||||
url: docker.io/registry
|
||||
tag: 2.7.1
|
||||
```
|
||||
|
||||
## firewalld
|
||||
Configures firewalld services and networks
|
||||
|
||||
<a name="hostapd"/>
|
||||
Installs and configures hostapd to use the wireless interface as a access point
|
||||
```
|
||||
# salt/pillars/hostapd.sls
|
||||
hostapd:
|
||||
country_code: SE
|
||||
ssid: Transportable Lab Unit
|
||||
channel: 6
|
||||
wpa_passphrase: linux2linux
|
||||
```
|
||||
|
||||
## hosts
|
||||
Configures the hostname and `/etc/hosts`file so [dnsmasq](#dnsmask) has correct information
|
||||
|
||||
<a name="mariadb"/>
|
||||
### mariadb
|
||||
Installs and configures mariadb, [rmt](#rmt) needs a database
|
||||
```
|
||||
# salt/pillars/mysql.sls
|
||||
mysql:
|
||||
root_password: linux
|
||||
```
|
||||
|
||||
## nfs-server
|
@ -1,3 +1,4 @@
|
||||
include:
|
||||
- pxe.atftp
|
||||
- pxe.pxe
|
||||
- pxe.harvester
|
||||
|
Loading…
Reference in New Issue
Block a user