diff options
author | binary <me@rgoncalves.se> | 2020-09-05 12:47:53 +0200 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-09-05 12:47:53 +0200 |
commit | 63c7d0f74dedbd5e6c88fb1453b913b35611fb32 (patch) | |
tree | 54ecb428c346d294eb5a7af1b02d21cca05d44f2 | |
parent | 9ca657fe79db4a19eb607df8384f2fa6f268fc11 (diff) | |
download | infrastructure-63c7d0f74dedbd5e6c88fb1453b913b35611fb32.tar.gz |
refactored var files
-rw-r--r-- | group_vars/all/default.ini | 28 | ||||
-rw-r--r-- | group_vars/all/default.yml | 55 | ||||
-rw-r--r-- | group_vars/all/groups.ini | 19 |
3 files changed, 47 insertions, 55 deletions
diff --git a/group_vars/all/default.ini b/group_vars/all/default.ini new file mode 100644 index 0000000..5f4cd2c --- /dev/null +++ b/group_vars/all/default.ini @@ -0,0 +1,28 @@ +# SYSTEMD VARIABLES +g_systemd_unit_directory: /etc/systemd/system/ + +# PORT VARIABLES +g_port_ssh: 22 +g_port_http: 80 +g_port_https: 443 + +g_port_gitweb_gui: 16010 +g_port_mkdocs_gui: 16020 +g_port_syncthing_gui: 16030 +g_port_grafana_gui: 16090 +g_port_wireguard: 51100 +g_port_grafana: 51200 + +# IP VARIABLES +g_ip_mkdocs_gui: 0.0.0.0 + +# LOGGING VARIABLES +g_logging_directory: /var/REPLACEME + +# PACKAGES +package_curl: "curl" +package_neovim: "neovim" +package_tmux: "tmux" +package_wget: "wget" +package_zsh: "zsh" + diff --git a/group_vars/all/default.yml b/group_vars/all/default.yml deleted file mode 100644 index 7b70a72..0000000 --- a/group_vars/all/default.yml +++ /dev/null @@ -1,55 +0,0 @@ - -# =========================================================================== # -# _ ______ ___________ -# | | / / __ `/ ___/ ___/ -# | |/ / /_/ / / (__ ) -# |___/\__,_/_/ /____(_) -# -# =========================================================================== # - -- hosts: all - vars: - - # SYSTEMD VARIABLES - g_systemd_unit_directory: /etc/systemd/system/ - - # PORT VARIABLES - g_port_ssh: 22 - g_port_http: 80 - g_port_https: 443 - - g_port_gitweb_gui: 16010 - g_port_mkdocs_gui: 16020 - g_port_syncthing_gui: 16030 - g_port_grafana_gui: 16090 - g_port_wireguard: 51100 - g_port_grafana: 51200 - - # IP VARIABLES - g_ip_mkdocs_gui: 0.0.0.0 - - # LOGGING VARIABLES - g_logging_directory: /var/REPLACEME - - # PACKAGES - package_curl: "curl" - package_neovim: "neovim" - package_tmux: "tmux" - package_wget: "wget" - package_zsh: "zsh" - -- hosts: openbsd - vars: - group_root: "wheel" - path_zsh_bin: "/usr/local/bin/zsh" - -- hosts: centos - vars: - group_root: "root" - path_zsh_bin: "/bin/zsh" - -- hosts: debian - vars: - group_root: "root" - path_zsh_bin: "/bin/zsh" - diff --git a/group_vars/all/groups.ini b/group_vars/all/groups.ini new file mode 100644 index 0000000..d5e173a --- /dev/null +++ b/group_vars/all/groups.ini @@ -0,0 +1,19 @@ +[servers:vars] +package_curl="curl" +package_neovim="neovim" +package_tmux="tmux" +package_wget="wget" +package_zsh="zsh" + +[openbsd:vars] +group_root="wheel" +path_zsh_bin="/usr/local/bin/zsh" + +[centos:vars] +group_root="root" +path_zsh_bin="/bin/zsh" + +[debian:vars] +group_root="root" +path_zsh_bin="/bin/zsh" + |