~nesv/govern

8948eddb973494076f472214532ce31a78ca7825 — Nick Saika 1 year, 3 months ago 301ff93
example/state: Remove nginx.hcl

Just to limit the examples to things we actually have.
3 files changed, 7 insertions(+), 44 deletions(-)

A example/state/devtools.hcl
D example/state/nginx.hcl
M example/state/utils.hcl
A example/state/devtools.hcl => example/state/devtools.hcl +7 -0
@@ 0,0 1,7 @@
pkg "tig" {
  state = "latest"
}

pkg "git" {
  state = "latest"
}
\ No newline at end of file

D example/state/nginx.hcl => example/state/nginx.hcl +0 -40
@@ 1,40 0,0 @@
pkg "nginx" {
  state = "installed"

  notify = ["service:nginx:restart"]
}

pkg "nginx-prometheus-exporter" {
  # Specifying the "version" argument implies state = installed.
  # If state = latest, and version != "", then an error will be raised.
  version = "0.8.0-1"
}

file "/tmp/nesv.ca-index.html" {
  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"]
  float = 0.234234
  bool  = false

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

service "nginx" {
  enabled = true
  state   = "running"
}

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

pkg "bashtop" {
  state = "latest"
}