~nesv/govern

923d1d087ab45e8c579310c06c37f7cbcfa067e4 — Nick Saika 1 year, 9 months ago 00a0d9d
example: Update "nginx" and "utils" state examples
2 files changed, 19 insertions(+), 14 deletions(-)

M example/state/nginx.hcl
M example/state/utils.hcl
M example/state/nginx.hcl => example/state/nginx.hcl +15 -14
@@ 11,26 11,27 @@ pkg "nginx-prometheus-exporter" {
}

file "/tmp/nesv.ca-index.html" {
  source = "https://nesv.ca"
  user = "nesv"
  group = "users"
  mode = "0644"
  state = "present"
  source   = "https://nesv.ca"
  checksum = "sha256:51620ae7f20bbf4723ea9cff5af399a75cb51dee018e79558a587d46b6e5e5bc"
  user     = "nesv"
  group    = "users"
  mode     = 0644
  state    = "present"
}

file "nginx.conf" {
  src      = "nginx.conf"
  dest     = "/usr/local/etc/nginx.conf"
  user     = "root"
  group    = "wheel"
  mode     = 0755
  foo = ["something,","else"]
  src   = "nginx.conf"
  dest  = "/usr/local/etc/nginx.conf"
  user  = "root"
  group = "wheel"
  mode  = 0755
  foo   = ["something,", "else"]
  float = 0.234234
  bool = false
  bool  = false

  before = ["service:nginx"]
  after = ["pkg:nginx", "pkg:nginx-mod-geoip2"]
  notify  = ["service:nginx:reload"]
  after  = ["pkg:nginx", "pkg:nginx-mod-geoip2"]
  notify = ["service:nginx:reload"]
}

service "nginx" {

M example/state/utils.hcl => example/state/utils.hcl +4 -0
@@ 3,3 3,7 @@ pkg "htop" {}
pkg "neofetch" {
  state = "latest"
}

pkg "bashtop" {
  state = "latest"
}