diff --git a/doc/_index.html b/doc/_index.html
index 1b1e69f..ba65064 100644
--- a/doc/_index.html
+++ b/doc/_index.html
@@ -64,47 +64,47 @@
-
- C
+
+ A
- cd_alloy
+ alloy_cd
- cd_alloy::main::config
+ alloy_cd::main::config
- cd_alloy::main::dirs
+ alloy_cd::main::dirs
- cd_alloy::main::files
+ alloy_cd::main::files
- cd_alloy::main::install
+ alloy_cd::main::install
- cd_alloy::main::service
+ alloy_cd::main::service
- cd_alloy::main::yumrepo
+ alloy_cd::main::yumrepo
- cd_alloy::params
+ alloy_cd::params
diff --git a/doc/file.README.html b/doc/file.README.html
index d4eb3d6..b8026a1 100644
--- a/doc/file.README.html
+++ b/doc/file.README.html
@@ -72,7 +72,7 @@ forward logs to Loki, a log management system also built by Grafana labs.
Then you can use Grafana itself to visualize those logs and built an
alerting system.
-cd_alloy is a Puppet module to automate installation and
+
alloy_cd is a Puppet module to automate installation and
configuration of alloy.
WARNING
diff --git a/doc/index.html b/doc/index.html
index c47f2b8..106799c 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -72,7 +72,7 @@ forward logs to Loki, a log management system also built by Grafana labs.
Then you can use Grafana itself to visualize those logs and built an
alerting system.
-cd_alloy is a Puppet module to automate installation and
+
alloy_cd is a Puppet module to automate installation and
configuration of alloy.
WARNING
diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html
index 715bd01..0a74441 100644
--- a/doc/puppet_class_list.html
+++ b/doc/puppet_class_list.html
@@ -36,58 +36,58 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/doc/puppet_classes/alloy_cd.html b/doc/puppet_classes/alloy_cd.html
new file mode 100644
index 0000000..757bdbc
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd.html
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd
+
+
+
+
+ Defined in:
+
+ manifests/init.pp
+
+
+
+
+
Summary
+ Class initializes the alloy_cd module.
+
+
Overview
+
+
+
+
alloy_cd::init.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+
+
+ # File 'manifests/init.pp', line 6
+
+class alloy_cd {
+ include alloy_cd::params
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Aconfig.html b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Aconfig.html
new file mode 100644
index 0000000..f441978
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Aconfig.html
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd::main::config
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd::main::config
+
+
+
+ Inherits:
+ alloy_cd::params
+
+
+
+
+ Defined in:
+
+ manifests/main/config.pp
+
+
+
+
+
Summary
+ Class manages module logic for the alloy_cd module
+
+
Overview
+
+
+
+
alloy_cd::main::config.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+
+
+ # File 'manifests/main/config.pp', line 6
+
+class alloy_cd::main::config (
+
+) inherits alloy_cd::params {
+ include alloy_cd::main::service
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Adirs.html b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Adirs.html
new file mode 100644
index 0000000..9d76149
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Adirs.html
@@ -0,0 +1,154 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd::main::dirs
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd::main::dirs
+
+
+
+ Inherits:
+ alloy_cd::params
+
+
+
+
+ Defined in:
+
+ manifests/main/dirs.pp
+
+
+
+
+
Summary
+ Class manages required directories for the alloy_cd module
+
+
Overview
+
+
+
+
alloy_cd::main::dirs.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+
+
+ # File 'manifests/main/dirs.pp', line 6
+
+class alloy_cd::main::dirs (
+
+) inherits alloy_cd::params {
+ require alloy_cd::main::install
+
+ # main config dir
+ file { $ay_main_dir:
+ ensure => directory,
+ owner => 'root',
+ group => 'alloy',
+ mode => '0770',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Afiles.html
new file mode 100644
index 0000000..e4cdfc6
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Afiles.html
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd::main::files
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd::main::files
+
+
+
+ Inherits:
+ alloy_cd::params
+
+
+
+
+ Defined in:
+
+ manifests/main/files.pp
+
+
+
+
+
Summary
+ Class manages required config files for the alloy_cd module
+
+
Overview
+
+
+
+
alloy_cd::main::files.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+
+
+ # File 'manifests/main/files.pp', line 6
+
+class alloy_cd::main::files (
+
+) inherits alloy_cd::params {
+ require alloy_cd::main::dirs
+
+ # Ensure log_targets is always an array
+ $log_targets_array = Array($alloy_cd::params::ay_log_targets, true)
+
+ file { $ay_main_file:
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ content => template('alloy_cd/config.alloy.erb'),
+ notify => Service[$ay_service],
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Ainstall.html
new file mode 100644
index 0000000..0586fd4
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Ainstall.html
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd::main::install
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd::main::install
+
+
+
+ Inherits:
+ alloy_cd::params
+
+
+
+
+ Defined in:
+
+ manifests/main/install.pp
+
+
+
+
+
Summary
+ Class installs packages for the alloy_cd module
+
+
Overview
+
+
+
+
alloy_cd::main::install.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+11
+12
+13
+14
+
+
+ # File 'manifests/main/install.pp', line 6
+
+class alloy_cd::main::install (
+
+) inherits alloy_cd::params {
+ require alloy_cd::main::yumrepo
+
+ package { $reqpackages:
+ ensure => $pkg_ensure,
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Aservice.html b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Aservice.html
new file mode 100644
index 0000000..7888ddc
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Aservice.html
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd::main::service
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd::main::service
+
+
+
+ Inherits:
+ alloy_cd::params
+
+
+
+
+ Defined in:
+
+ manifests/main/service.pp
+
+
+
+
+
Summary
+ Class manages the alloy service
+
+
Overview
+
+
+
+
alloy_cd::main::service.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+
+
+ # File 'manifests/main/service.pp', line 6
+
+class alloy_cd::main::service (
+
+) inherits alloy_cd::params {
+ require alloy_cd::main::files
+
+ service { $ay_service:
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Ayumrepo.html b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Ayumrepo.html
new file mode 100644
index 0000000..1e5cc48
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd_3A_3Amain_3A_3Ayumrepo.html
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd::main::yumrepo
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd::main::yumrepo
+
+
+
+ Inherits:
+ alloy_cd::params
+
+
+
+
+ Defined in:
+
+ manifests/main/yumrepo.pp
+
+
+
+
+
Summary
+ class install yum repos for the alloy_cd module
+
+
Overview
+
+
+
+
alloy_cd::main::yumrepo.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+
+
+ # File 'manifests/main/yumrepo.pp', line 6
+
+class alloy_cd::main::yumrepo (
+
+) inherits alloy_cd::params {
+
+ # test
+ yumrepo { 'grafana':
+ ensure => 'present',
+ name => 'grafana',
+ descr => 'grafana',
+ baseurl => 'https://packages.grafana.com/oss/rpm',
+ gpgkey => 'https://packages.grafana.com/gpg.key',
+ enabled => '1',
+ gpgcheck => '1',
+ target => '/etc/yum.repo.d/grafana.repo',
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/alloy_cd_3A_3Aparams.html b/doc/puppet_classes/alloy_cd_3A_3Aparams.html
new file mode 100644
index 0000000..6c525c5
--- /dev/null
+++ b/doc/puppet_classes/alloy_cd_3A_3Aparams.html
@@ -0,0 +1,358 @@
+
+
+
+
+
+
+ Puppet Class: alloy_cd::params
+
+ — Documentation by YARD 0.9.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: alloy_cd::params
+
+
+
Summary
+ Class contains all parameters for the alloy_cd module.
+
+
Overview
+
+
+
+
alloy_cd::params.pp Module name: alloy_cd Author: Arne Teuke
+(arne_teuke@confdroid.com)
+
+
+
+
+
+
+
+
+
+
+
+
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+
+
+ # File 'manifests/params.pp', line 15
+
+class alloy_cd::params (
+
+ String $reqpackages = 'alloy',
+ String $pkg_ensure = 'latest',
+
+# loki
+ String $ay_manage_loki = true,
+ String $ay_loki_url = 'https://loki.example.net/loki/api/v1/push',
+ String $ay_loki_username = 'loki_user',
+ String $ay_loki_userpass = 'loki_pass',
+ Array $ay_log_targets = ['/var/log/messages','/var/log/secure',],
+
+# prometheus
+ Boolean $ay_manage_prom = true,
+ String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
+
+) {
+ # service
+ $ay_service = 'alloy'
+
+ # dirs
+ $ay_main_dir = '/etc/alloy'
+
+ # files
+ $ay_main_file = "${ay_main_dir}/config.alloy"
+
+ # includes must be last
+ include alloy_cd::main::config
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file