Add networking
This commit is contained in:
parent
c34599d749
commit
a21f795f24
5 changed files with 30 additions and 5 deletions
|
@ -2,12 +2,10 @@ applications_mysql_pkgs:
|
|||
pkg.installed:
|
||||
- pkgs:
|
||||
- mariadb
|
||||
- mariadb-client
|
||||
- mariadb-openrc
|
||||
|
||||
applications_mysql_enable:
|
||||
service.enabled:
|
||||
- name: mariadb
|
||||
- require:
|
||||
- applications_mysql_pkgs
|
||||
file.directory:
|
||||
- name: /var/lib/mysql
|
||||
- create: False
|
||||
|
@ -19,3 +17,7 @@ applications_mysql_enable:
|
|||
- group
|
||||
- require:
|
||||
- applications_mysql_pkgs
|
||||
service.enabled:
|
||||
- name: mariadb
|
||||
- require:
|
||||
- applications_mysql_pkgs
|
||||
|
|
|
@ -2,6 +2,7 @@ applications_podman_pkgs:
|
|||
pkg.installed:
|
||||
- pkgs:
|
||||
- podman
|
||||
- podman-openrc
|
||||
|
||||
applications_podman_enable:
|
||||
service.enabled:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
applications_ssh_pkgs:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- openssh
|
||||
- openssh-server
|
||||
|
||||
applications_ssh_add_keys:
|
||||
file.managed:
|
||||
|
|
2
system/files/network_interfaces
Normal file
2
system/files/network_interfaces
Normal file
|
@ -0,0 +1,2 @@
|
|||
auto eth0
|
||||
iface eth0 inet dhcp
|
20
system/network.sls
Normal file
20
system/network.sls
Normal file
|
@ -0,0 +1,20 @@
|
|||
include:
|
||||
- .base
|
||||
|
||||
system_network_interfaces:
|
||||
file.managed:
|
||||
- name: /etc/network/interfaces
|
||||
- source: salt://{{ tpldir }}/files/network_interfaces
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: '0644'
|
||||
- require:
|
||||
- system_base_pkgs
|
||||
|
||||
system_network_service_reload:
|
||||
service.running:
|
||||
- name: networking
|
||||
- enable: true
|
||||
- reload: true
|
||||
- watch:
|
||||
- system_network_interfaces
|
Loading…
Reference in a new issue