Przejdź do treści

Puppet – Inwestygacja

Linijka Debugowania do KODU

class debugging {

  # for debug output on the puppet master
  notice("Running with \$mysql_server_id ${::mysql_server_id} ID defined")

  # for debug output on the puppet client
  notify {"Running with \$mysql_server_id ${::mysql_server_id} ID defined":}

  # for debug output on the puppet client - with full source information
  notify {"Running with \$mysql_server_id ${::mysql_server_id} ID defined":
    withpath => true,
  }

}

Parametr

class LINUXINFRA::COSTAM ( boolean $zmienna = false ) {

if $zmienna {
notify {"Program Dziala":}
}

}

Jakie Klasy są używane przez puppeta

cat /opt/puppetlabs/puppet/cache/state/classes.txt

Dodaj komentarz

Twój adres email nie zostanie opublikowany. Wymagane pola są oznaczone *