diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt index 3bdb40d..de82018 100644 --- a/.scannerwork/report-task.txt +++ b/.scannerwork/report-task.txt @@ -2,5 +2,5 @@ projectKey=automatic_cd serverUrl=https://sonarqube.confdroid.com serverVersion=25.5.0.107428 dashboardUrl=https://sonarqube.confdroid.com/dashboard?id=automatic_cd -ceTaskId=4ccdaf05-9fd9-4b49-ae5b-4f034a7ff4bf -ceTaskUrl=https://sonarqube.confdroid.com/api/ce/task?id=4ccdaf05-9fd9-4b49-ae5b-4f034a7ff4bf +ceTaskId=2202c158-e702-45b7-b0c1-51241db830fc +ceTaskUrl=https://sonarqube.confdroid.com/api/ce/task?id=2202c158-e702-45b7-b0c1-51241db830fc diff --git a/.yardoc/checksums b/.yardoc/checksums index 0055766..7b5edda 100644 --- a/.yardoc/checksums +++ b/.yardoc/checksums @@ -1,4 +1,7 @@ manifests/init.pp 478e2a087e702bfd4cf48c5d8984325040307f15 -manifests/params.pp 10f20ec989b6f5d3a7cd36f1bb7565b856a05311 -manifests/main/config.pp 9979f80fdc301ea94f85d4bcfb5d51da989f8341 -manifests/main/install.pp 46ad9214a6eb935c558e22dc5cc7787eccfa1602 +manifests/params.pp 105220e2dbaaee44adf12e3a83d88aab57e0cc83 +manifests/main/dirs.pp af59ff6da810f0490aff3b9c21a8f3c69ae5b20b +manifests/main/files.pp 59e63f3cb976e784c9c32b8ea522a70bb4c74d17 +manifests/main/config.pp 27413292f36c6dd5df14e4c64455d623a0b164fa +manifests/main/install.pp 5a03608b5080efd898c40968c2c8c5dfc9762fb2 +manifests/main/service.pp bc471c6cf6baeba3123fb3c6f037691afd4c87c3 diff --git a/.yardoc/object_types b/.yardoc/object_types index 2fd9836..86e2045 100644 Binary files a/.yardoc/object_types and b/.yardoc/object_types differ diff --git a/.yardoc/objects/root.dat b/.yardoc/objects/root.dat index 0264542..1e1bdaf 100644 Binary files a/.yardoc/objects/root.dat and b/.yardoc/objects/root.dat differ diff --git a/doc/_index.html b/doc/_index.html index d72c746..a66fed5 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -78,11 +78,26 @@ +
  • + automatic_cd::main::dirs + +
  • + +
  • + automatic_cd::main::files + +
  • +
  • automatic_cd::main::install
  • +
  • + automatic_cd::main::service + +
  • +
  • automatic_cd::params diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index bb40879..31db894 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -50,6 +50,20 @@
  • +
  • +
    + automatic_cd::main::dirs +
    +
  • + + +
  • +
    + automatic_cd::main::files +
    +
  • + +
  • automatic_cd::main::install @@ -57,7 +71,14 @@
  • -
  • +
  • +
    + automatic_cd::main::service +
    +
  • + + +
  • automatic_cd::params
    diff --git a/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Aconfig.html b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Aconfig.html index 4221e92..d5126a1 100644 --- a/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Aconfig.html +++ b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Aconfig.html @@ -83,7 +83,7 @@
    -

    automatic_cd::config.pp Module name: automatic_cd Author: Arne Teuke (arne_teuke@confdroid.com)

    +

    automatic_cd::main::config.pp Module name: automatic_cd Author: Arne Teuke (arne_teuke@confdroid.com)

    @@ -113,7 +113,7 @@ class automatic_cd::main::config ( ) inherits automatic_cd::params { - include automatic_cd::main::install + include automatic_cd::main::service } diff --git a/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Adirs.html b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Adirs.html new file mode 100644 index 0000000..d1b9652 --- /dev/null +++ b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Adirs.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: automatic_cd::main::dirs + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: automatic_cd::main::dirs

    +
    + +
    +
    Inherits:
    +
    automatic_cd::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/dirs.pp +
    +
    +
    + +

    Summary

    + Class manages dirs for the automatic_cd module + +

    Overview

    +
    +
    + +

    automatic_cd::main::dirs.pp Module name: automatic_cd Author: Arne Teuke (arne_teuke@confdroid.com)

    + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +
    +
    # File 'manifests/main/dirs.pp', line 6
    +
    +class automatic_cd::main::dirs (
    +
    +) inherits automatic_cd::params {
    +  require automatic_cd::main::install
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Afiles.html new file mode 100644 index 0000000..c64d8e7 --- /dev/null +++ b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Afiles.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: automatic_cd::main::files + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: automatic_cd::main::files

    +
    + +
    +
    Inherits:
    +
    automatic_cd::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/files.pp +
    +
    +
    + +

    Summary

    + Class manages files for the automatic_cd module + +

    Overview

    +
    +
    + +

    automatic_cd::main::files.pp Module name: automatic_cd Author: Arne Teuke (arne_teuke@confdroid.com)

    + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +
    +
    # File 'manifests/main/files.pp', line 6
    +
    +class automatic_cd::main::files (
    +
    +) inherits automatic_cd::params {
    +  require automatic_cd::main::dirs
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Ainstall.html index 48f8e50..9d4b13f 100644 --- a/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Ainstall.html +++ b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Ainstall.html @@ -83,7 +83,7 @@
    -

    automatic_cd::install.pp Module name: automatic_cd Author: Arne Teuke (arne_teuke@confdroid.com)

    +

    automatic_cd::main::install.pp Module name: automatic_cd Author: Arne Teuke (arne_teuke@confdroid.com)

    diff --git a/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Aservice.html b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Aservice.html new file mode 100644 index 0000000..5173e74 --- /dev/null +++ b/doc/puppet_classes/automatic_cd_3A_3Amain_3A_3Aservice.html @@ -0,0 +1,144 @@ + + + + + + + Puppet Class: automatic_cd::main::service + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: automatic_cd::main::service

    +
    + +
    +
    Inherits:
    +
    automatic_cd::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/service.pp +
    +
    +
    + +

    Summary

    + Class manages services for the automatic_cd module + +

    Overview

    +
    +
    + +

    automatic_cd::main::service.pp Module name: automatic_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 automatic_cd::main::service (
    +
    +) inherits automatic_cd::params {
    +  require automatic_cd::main::files
    +
    +  service { $ac_service:
    +    ensure     => running,
    +    hasstatus  => true,
    +    hasrestart => true,
    +    enable     => true,
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/automatic_cd_3A_3Aparams.html b/doc/puppet_classes/automatic_cd_3A_3Aparams.html index 2dc10e1..a637640 100644 --- a/doc/puppet_classes/automatic_cd_3A_3Aparams.html +++ b/doc/puppet_classes/automatic_cd_3A_3Aparams.html @@ -67,10 +67,16 @@
    Inherited by:
    + automatic_cd::main::dirs
    + + automatic_cd::main::files
    + automatic_cd::main::config
    automatic_cd::main::install
    + automatic_cd::main::service
    +
    @@ -155,7 +161,16 @@ 13 14 15 -16 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25
    # File 'manifests/params.pp', line 8
    @@ -163,9 +178,18 @@
     class automatic_cd::params (
     
       String $reqpackages     = 'dnf-automatic',
    -  String $pkg_ensure        = 'latest',
    +  String $pkg_ensure      = 'latest',
     
     ) {
    +# Facts
    +  $fqdn                   = $facts['networking']['fqdn']
    +  $domain                 = $facts['networking']['domain']
    +  $os_name                = $facts['os']['name']
    +  $os_release             = $facts['os']['release']['major']
    +
    +# Service
    +  $ac_service             = 'dnf-automatic.timer'
    +
     # includes must be last
       include automatic_cd::main::config
     }