Compare commits
11 Commits
2a8939fbcb
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
025aab71fc | ||
| 7972cfd5ad | |||
|
|
def42a7bc3 | ||
| 45ce68ea3d | |||
|
|
02ac780491 | ||
|
|
425fd79204 | ||
| f3923c6330 | |||
|
|
b55920b478 | ||
|
|
2f6fea62b3 | ||
| a59c9727e0 | |||
|
|
b12f4bd203 |
12
.vscode/settings.json
vendored
12
.vscode/settings.json
vendored
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"endscript",
|
||||
"maillog",
|
||||
"missingok",
|
||||
"postrotate",
|
||||
"sharedscripts",
|
||||
"syslogs",
|
||||
"userpass",
|
||||
"yumrepo"
|
||||
]
|
||||
}
|
||||
127
Jenkinsfile
vendored
127
Jenkinsfile
vendored
@@ -1,127 +0,0 @@
|
||||
pipeline {
|
||||
agent {
|
||||
label 'puppet'
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
deleteDir() /* clean up our workspace */
|
||||
}
|
||||
success {
|
||||
updateGitlabCommitStatus state: 'success'
|
||||
}
|
||||
failure {
|
||||
updateGitlabCommitStatus state: 'failed'
|
||||
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'support@confdroid.com', sendToIndividuals: true])
|
||||
}
|
||||
}
|
||||
|
||||
options {
|
||||
gitLabConnection('gitlab.confdroid.com')
|
||||
}
|
||||
|
||||
stages {
|
||||
|
||||
stage('pull master') {
|
||||
steps {
|
||||
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
|
||||
sh '''
|
||||
git config user.name "Jenkins Server"
|
||||
git config user.email jenkins@confdroid.com
|
||||
# Ensure we're on the development branch (triggered by push)
|
||||
git checkout development
|
||||
# Create jenkins branch from development
|
||||
git checkout -b jenkins-build-$BUILD_NUMBER
|
||||
# Optionally merge master into jenkins to ensure compatibility
|
||||
git merge origin/master --no-ff || { echo "Merge conflict detected"; exit 1; }
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('puppet parser') {
|
||||
steps {
|
||||
sh '''for file in $(find . -iname \'*.pp\'); do
|
||||
/opt/puppetlabs/bin/puppet parser validate --color false --render-as s --modulepath=modules $file || exit 1;
|
||||
done;'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('check templates') {
|
||||
steps{
|
||||
sh '''for file in $(find . -iname \'*.erb\');
|
||||
do erb -P -x -T "-" $file | ruby -c || exit 1;
|
||||
done;'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('puppet-lint') {
|
||||
steps {
|
||||
sh '''/usr/local/bin/puppet-lint . \\
|
||||
--no-variable_scope-check \\
|
||||
|| { echo "Puppet lint failed"; exit 1; }
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('SonarScan') {
|
||||
steps {
|
||||
withCredentials([string(credentialsId: 'sonar-token', variable: 'SONAR_TOKEN')]) {
|
||||
sh '''
|
||||
/opt/sonar-scanner/bin/sonar-scanner \
|
||||
-Dsonar.projectKey=confdroid_alloy \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.host.url=https://sonarqube.confdroid.com \
|
||||
-Dsonar.token=$SONAR_TOKEN
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('create Puppet documentation') {
|
||||
steps {
|
||||
sh '/opt/puppetlabs/bin/puppet strings'
|
||||
}
|
||||
}
|
||||
|
||||
stage('update repo') {
|
||||
steps {
|
||||
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
|
||||
sh '''
|
||||
git config user.name "Jenkins Server"
|
||||
git config user.email jenkins@confdroid.com
|
||||
git rm -r --cached .vscode || echo "No .vscode to remove from git"
|
||||
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
|
||||
git push origin HEAD:master
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Mirror to Gitea') {
|
||||
steps {
|
||||
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
|
||||
withCredentials([usernamePassword(
|
||||
credentialsId: 'Jenkins-gitea',
|
||||
usernameVariable: 'GITEA_USER',
|
||||
passwordVariable: 'GITEA_TOKEN')]) {
|
||||
script {
|
||||
// Checkout from GitLab (already done implicitly)
|
||||
sh '''
|
||||
git checkout master
|
||||
git pull origin master
|
||||
git branch -D development
|
||||
git branch -D jenkins-build-$BUILD_NUMBER
|
||||
git rm -f Jenkinsfile
|
||||
git rm -r --cached .vscode || echo "No .vscode to remove from git"
|
||||
git commit --amend --no-edit --allow-empty
|
||||
git remote add master https://sourcecode.confdroid.com/confdroid/confdroid_alloy.git
|
||||
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
||||
push master --mirror
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
README.md
12
README.md
@@ -1,6 +1,8 @@
|
||||
# Readme
|
||||
|
||||
[](https://jenkins.confdroid.com/job/confdroid_alloy/)
|
||||
[](https://sonarqube.confdroid.com/dashboard?id=confdroid_alloy)
|
||||
[](https://deepwiki.com/grizzlycoda/puppet_collection)
|
||||
|
||||
- [Readme](#readme)
|
||||
- [Synopsis](#synopsis)
|
||||
@@ -18,7 +20,11 @@
|
||||
|
||||
## Synopsis
|
||||
|
||||
Grafana Alloy is a log management agent built by Grafana labs to scrape and 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.
|
||||
Grafana Alloy is a log management agent built by Grafana labs to scrape and forward logs to Loki, a log management system also built by Grafana labs.
|
||||
|
||||
It also can scrape and forward metrics to Prometheus.
|
||||
|
||||
Then you can use Grafana itself to visualize those logs and metrics and built an alerting system.
|
||||
|
||||
`confdroid_alloy` is a Puppet module to automate installation and configuration of alloy.
|
||||
|
||||
@@ -31,11 +37,13 @@ Grafana Alloy is a log management agent built by Grafana labs to scrape and forw
|
||||
INSTALLATION
|
||||
|
||||
- installs alloy binaries
|
||||
- installs node exporter (optional, set `ay_manage_ne`to `true`)
|
||||
|
||||
CONFIGURATION
|
||||
|
||||
- manage directories and files including templates
|
||||
- manages the main alloy jenkins for loki and prometheus
|
||||
- manages the main alloy pipeline for loki and prometheus
|
||||
- manages log rotation for rsyslog to allow adm membership
|
||||
- manage service
|
||||
|
||||
## Repo Documentation
|
||||
|
||||
@@ -64,47 +64,47 @@
|
||||
<td valign='top' width="33%">
|
||||
|
||||
|
||||
<ul id="alpha_A" class="alpha">
|
||||
<li class="letter">A</li>
|
||||
<ul id="alpha_C" class="alpha">
|
||||
<li class="letter">C</li>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd.html" title="puppet_classes::alloy_cd (puppet_class)">alloy_cd</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy.html" title="puppet_classes::confdroid_alloy (puppet_class)">confdroid_alloy</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::alloy_cd::main::config (puppet_class)">alloy_cd::main::config</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_alloy::main::config (puppet_class)">confdroid_alloy::main::config</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::alloy_cd::main::dirs (puppet_class)">alloy_cd::main::dirs</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_alloy::main::dirs (puppet_class)">confdroid_alloy::main::dirs</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::alloy_cd::main::files (puppet_class)">alloy_cd::main::files</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_alloy::main::files (puppet_class)">confdroid_alloy::main::files</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::alloy_cd::main::install (puppet_class)">alloy_cd::main::install</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_alloy::main::install (puppet_class)">confdroid_alloy::main::install</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::alloy_cd::main::service (puppet_class)">alloy_cd::main::service</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_alloy::main::service (puppet_class)">confdroid_alloy::main::service</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::alloy_cd::main::yumrepo (puppet_class)">alloy_cd::main::yumrepo</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_alloy::main::yumrepo (puppet_class)">confdroid_alloy::main::yumrepo</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
@@ -60,15 +60,44 @@
|
||||
<div id="content"><div id='filecontents'>
|
||||
<h1 id="label-Readme">Readme</h1>
|
||||
|
||||
<p><a href="https://jenkins.confdroid.com/job/alloy_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=alloy_cd"></a></p>
|
||||
|
||||
<p>[[<em>TOC</em>]]</p>
|
||||
<p><a href="https://jenkins.confdroid.com/job/confdroid_alloy/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_alloy&style=plastic"></a> <a href="https://sonarqube.confdroid.com/dashboard?id=confdroid_alloy"><img src="https://sonarqube.confdroid.com/api/project_badges/measure?project=confdroid_alloy&metric=security_hotspots&token=sqb_05c3bd9116b3d2585b1f06dd7b6d0d5a6433fe8b"></a> <a href="https://deepwiki.com/grizzlycoda/puppet_collection"><img src="https://deepwiki.com/badge.svg"></a></p>
|
||||
<ul><li>
|
||||
<p><a href="#readme">Readme</a></p>
|
||||
</li><li>
|
||||
<p><a href="#synopsis">Synopsis</a></p>
|
||||
</li><li>
|
||||
<p><a href="#warning">WARNING</a></p>
|
||||
</li><li>
|
||||
<p><a href="#features">Features</a></p>
|
||||
</li><li>
|
||||
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
||||
</li><li>
|
||||
<p><a href="#dependencies">Dependencies</a></p>
|
||||
</li><li>
|
||||
<p><a href="#deployment">Deployment</a></p>
|
||||
</li><li>
|
||||
<p><a href="#selinux">SELINUX</a></p>
|
||||
</li><li>
|
||||
<p><a href="#known-problems">Known Problems</a></p>
|
||||
</li><li>
|
||||
<p><a href="#support">Support</a></p>
|
||||
</li><li>
|
||||
<p><a href="#tests">Tests</a></p>
|
||||
</li><li>
|
||||
<p><a href="#contact-us">Contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="#disclaimer">Disclaimer</a></p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Synopsis">Synopsis</h2>
|
||||
|
||||
<p>Grafana Alloy is a log management agent built by Grafana labs to scrape and 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.</p>
|
||||
<p>Grafana Alloy is a log management agent built by Grafana labs to scrape and forward logs to Loki, a log management system also built by Grafana labs.</p>
|
||||
|
||||
<p><code>alloy_cd</code> is a Puppet module to automate installation and configuration of alloy.</p>
|
||||
<p>It also can scrape and forward metrics to Prometheus.</p>
|
||||
|
||||
<p>Then you can use Grafana itself to visualize those logs and metrics and built an alerting system.</p>
|
||||
|
||||
<p><code>confdroid_alloy</code> is a Puppet module to automate installation and configuration of alloy.</p>
|
||||
|
||||
<h2 id="label-WARNING">WARNING</h2>
|
||||
|
||||
@@ -79,13 +108,17 @@
|
||||
<p>INSTALLATION</p>
|
||||
<ul><li>
|
||||
<p>installs alloy binaries</p>
|
||||
</li><li>
|
||||
<p>installs node exporter (optional, set <code>ay_manage_ne</code>to <code>true</code>)</p>
|
||||
</li></ul>
|
||||
|
||||
<p>CONFIGURATION</p>
|
||||
<ul><li>
|
||||
<p>manage directories and files including templates</p>
|
||||
</li><li>
|
||||
<p>manages the main alloy jenkins for loki and prometheus</p>
|
||||
<p>manages the main alloy pipeline for loki and prometheus</p>
|
||||
</li><li>
|
||||
<p>manages log rotation for rsyslog to allow adm membership</p>
|
||||
</li><li>
|
||||
<p>manage service</p>
|
||||
</li></ul>
|
||||
@@ -106,7 +139,7 @@
|
||||
<p>via site.pp or nodes.pp</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
||||
include cd_kubernetes
|
||||
include confdroid_alloy
|
||||
}
|
||||
</code></pre>
|
||||
<ul><li>
|
||||
@@ -127,13 +160,18 @@
|
||||
<ul><li>
|
||||
<p>OS: Rocky 9</p>
|
||||
</li><li>
|
||||
<p>Puppet 6,8</p>
|
||||
<p>Puppet 8</p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Tests">Tests</h2>
|
||||
<ul><li>
|
||||
<p>Puppet Lint</p>
|
||||
</li><li>
|
||||
<p>excluded tests:</p>
|
||||
<ul><li>
|
||||
<p><code>--no-variable_scope-check</code>: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.</p>
|
||||
</li></ul>
|
||||
</li><li>
|
||||
<p>Puppet Parser</p>
|
||||
</li><li>
|
||||
<p>ERB Template Parser</p>
|
||||
@@ -142,8 +180,11 @@
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Contact+Us">Contact Us</h2>
|
||||
|
||||
<ul><li>
|
||||
<p><a href="https://confdroid.com/contact/">contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="https://feedback.confdroid.com">Feedback Portal</a></p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Disclaimer">Disclaimer</h2>
|
||||
|
||||
|
||||
@@ -60,15 +60,44 @@
|
||||
<div id="content"><div id='filecontents'>
|
||||
<h1 id="label-Readme">Readme</h1>
|
||||
|
||||
<p><a href="https://jenkins.confdroid.com/job/alloy_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=alloy_cd"></a></p>
|
||||
|
||||
<p>[[<em>TOC</em>]]</p>
|
||||
<p><a href="https://jenkins.confdroid.com/job/confdroid_alloy/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_alloy&style=plastic"></a> <a href="https://sonarqube.confdroid.com/dashboard?id=confdroid_alloy"><img src="https://sonarqube.confdroid.com/api/project_badges/measure?project=confdroid_alloy&metric=security_hotspots&token=sqb_05c3bd9116b3d2585b1f06dd7b6d0d5a6433fe8b"></a> <a href="https://deepwiki.com/grizzlycoda/puppet_collection"><img src="https://deepwiki.com/badge.svg"></a></p>
|
||||
<ul><li>
|
||||
<p><a href="#readme">Readme</a></p>
|
||||
</li><li>
|
||||
<p><a href="#synopsis">Synopsis</a></p>
|
||||
</li><li>
|
||||
<p><a href="#warning">WARNING</a></p>
|
||||
</li><li>
|
||||
<p><a href="#features">Features</a></p>
|
||||
</li><li>
|
||||
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
||||
</li><li>
|
||||
<p><a href="#dependencies">Dependencies</a></p>
|
||||
</li><li>
|
||||
<p><a href="#deployment">Deployment</a></p>
|
||||
</li><li>
|
||||
<p><a href="#selinux">SELINUX</a></p>
|
||||
</li><li>
|
||||
<p><a href="#known-problems">Known Problems</a></p>
|
||||
</li><li>
|
||||
<p><a href="#support">Support</a></p>
|
||||
</li><li>
|
||||
<p><a href="#tests">Tests</a></p>
|
||||
</li><li>
|
||||
<p><a href="#contact-us">Contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="#disclaimer">Disclaimer</a></p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Synopsis">Synopsis</h2>
|
||||
|
||||
<p>Grafana Alloy is a log management agent built by Grafana labs to scrape and 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.</p>
|
||||
<p>Grafana Alloy is a log management agent built by Grafana labs to scrape and forward logs to Loki, a log management system also built by Grafana labs.</p>
|
||||
|
||||
<p><code>alloy_cd</code> is a Puppet module to automate installation and configuration of alloy.</p>
|
||||
<p>It also can scrape and forward metrics to Prometheus.</p>
|
||||
|
||||
<p>Then you can use Grafana itself to visualize those logs and metrics and built an alerting system.</p>
|
||||
|
||||
<p><code>confdroid_alloy</code> is a Puppet module to automate installation and configuration of alloy.</p>
|
||||
|
||||
<h2 id="label-WARNING">WARNING</h2>
|
||||
|
||||
@@ -79,13 +108,17 @@
|
||||
<p>INSTALLATION</p>
|
||||
<ul><li>
|
||||
<p>installs alloy binaries</p>
|
||||
</li><li>
|
||||
<p>installs node exporter (optional, set <code>ay_manage_ne</code>to <code>true</code>)</p>
|
||||
</li></ul>
|
||||
|
||||
<p>CONFIGURATION</p>
|
||||
<ul><li>
|
||||
<p>manage directories and files including templates</p>
|
||||
</li><li>
|
||||
<p>manages the main alloy jenkins for loki and prometheus</p>
|
||||
<p>manages the main alloy pipeline for loki and prometheus</p>
|
||||
</li><li>
|
||||
<p>manages log rotation for rsyslog to allow adm membership</p>
|
||||
</li><li>
|
||||
<p>manage service</p>
|
||||
</li></ul>
|
||||
@@ -106,7 +139,7 @@
|
||||
<p>via site.pp or nodes.pp</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
||||
include cd_kubernetes
|
||||
include confdroid_alloy
|
||||
}
|
||||
</code></pre>
|
||||
<ul><li>
|
||||
@@ -127,13 +160,18 @@
|
||||
<ul><li>
|
||||
<p>OS: Rocky 9</p>
|
||||
</li><li>
|
||||
<p>Puppet 6,8</p>
|
||||
<p>Puppet 8</p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Tests">Tests</h2>
|
||||
<ul><li>
|
||||
<p>Puppet Lint</p>
|
||||
</li><li>
|
||||
<p>excluded tests:</p>
|
||||
<ul><li>
|
||||
<p><code>--no-variable_scope-check</code>: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.</p>
|
||||
</li></ul>
|
||||
</li><li>
|
||||
<p>Puppet Parser</p>
|
||||
</li><li>
|
||||
<p>ERB Template Parser</p>
|
||||
@@ -142,8 +180,11 @@
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Contact+Us">Contact Us</h2>
|
||||
|
||||
<ul><li>
|
||||
<p><a href="https://confdroid.com/contact/">contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="https://feedback.confdroid.com">Feedback Portal</a></p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Disclaimer">Disclaimer</h2>
|
||||
|
||||
|
||||
@@ -36,58 +36,58 @@
|
||||
<ul id="full_list" class="puppet_class">
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_alloy" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd.html" title="puppet_classes::alloy_cd (puppet_class)">alloy_cd</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy.html" title="puppet_classes::confdroid_alloy (puppet_class)">confdroid_alloy</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd::main::config" class="even">
|
||||
<li id="object_puppet_classes::confdroid_alloy::main::config" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::alloy_cd::main::config (puppet_class)">alloy_cd::main::config</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_alloy::main::config (puppet_class)">confdroid_alloy::main::config</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd::main::dirs" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_alloy::main::dirs" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::alloy_cd::main::dirs (puppet_class)">alloy_cd::main::dirs</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_alloy::main::dirs (puppet_class)">confdroid_alloy::main::dirs</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd::main::files" class="even">
|
||||
<li id="object_puppet_classes::confdroid_alloy::main::files" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::alloy_cd::main::files (puppet_class)">alloy_cd::main::files</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_alloy::main::files (puppet_class)">confdroid_alloy::main::files</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd::main::install" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_alloy::main::install" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::alloy_cd::main::install (puppet_class)">alloy_cd::main::install</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_alloy::main::install (puppet_class)">confdroid_alloy::main::install</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd::main::service" class="even">
|
||||
<li id="object_puppet_classes::confdroid_alloy::main::service" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::alloy_cd::main::service (puppet_class)">alloy_cd::main::service</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_alloy::main::service (puppet_class)">confdroid_alloy::main::service</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd::main::yumrepo" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_alloy::main::yumrepo" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::alloy_cd::main::yumrepo (puppet_class)">alloy_cd::main::yumrepo</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_alloy::main::yumrepo (puppet_class)">confdroid_alloy::main::yumrepo</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::alloy_cd::params" class="even">
|
||||
<li id="object_puppet_classes::confdroid_alloy::params" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd
|
||||
Puppet Class: confdroid_alloy
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd";
|
||||
pathId = "puppet_classes::confdroid_alloy";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd</span>
|
||||
<span class="title">confdroid_alloy</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
@@ -72,13 +72,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class initializes the alloy_cd module.
|
||||
Class initializes the confdroid_alloy module.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::init.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::init.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,8 +103,8 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/init.pp', line 6</span>
|
||||
|
||||
class alloy_cd {
|
||||
include alloy_cd::params
|
||||
class confdroid_alloy {
|
||||
include confdroid_alloy::params
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd::main::config
|
||||
Puppet Class: confdroid_alloy::main::config
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd::main::config";
|
||||
pathId = "puppet_classes::confdroid_alloy::main::config";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd::main::config</span>
|
||||
<span class="title">confdroid_alloy::main::config</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd::main::config</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy::main::config</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages module logic for the alloy_cd module
|
||||
Class manages module logic for the confdroid_alloy module
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::main::config.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::main::config.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,10 +110,10 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
|
||||
|
||||
class alloy_cd::main::config (
|
||||
class confdroid_alloy::main::config (
|
||||
|
||||
) inherits alloy_cd::params {
|
||||
include alloy_cd::main::service
|
||||
) inherits confdroid_alloy::params {
|
||||
include confdroid_alloy::main::service
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd::main::dirs
|
||||
Puppet Class: confdroid_alloy::main::dirs
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd::main::dirs";
|
||||
pathId = "puppet_classes::confdroid_alloy::main::dirs";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd::main::dirs</span>
|
||||
<span class="title">confdroid_alloy::main::dirs</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd::main::dirs</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy::main::dirs</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages required directories for the alloy_cd module
|
||||
Class manages required directories for the confdroid_alloy module
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::main::dirs.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::main::dirs.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -122,10 +122,10 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
|
||||
|
||||
class alloy_cd::main::dirs (
|
||||
class confdroid_alloy::main::dirs (
|
||||
|
||||
) inherits alloy_cd::params {
|
||||
require alloy_cd::main::install
|
||||
) inherits confdroid_alloy::params {
|
||||
require confdroid_alloy::main::install
|
||||
|
||||
# main config dir
|
||||
file { $ay_main_dir:
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd::main::files
|
||||
Puppet Class: confdroid_alloy::main::files
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd::main::files";
|
||||
pathId = "puppet_classes::confdroid_alloy::main::files";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd::main::files</span>
|
||||
<span class="title">confdroid_alloy::main::files</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd::main::files</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy::main::files</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages required config files for the alloy_cd module
|
||||
Class manages required config files for the confdroid_alloy module
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::main::files.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::main::files.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -156,13 +156,13 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||
|
||||
class alloy_cd::main::files (
|
||||
class confdroid_alloy::main::files (
|
||||
|
||||
) inherits alloy_cd::params {
|
||||
require alloy_cd::main::dirs
|
||||
) inherits confdroid_alloy::params {
|
||||
require confdroid_alloy::main::dirs
|
||||
|
||||
# Ensure log_targets is always an array
|
||||
$log_targets_array = Array($alloy_cd::params::ay_log_targets, true)
|
||||
$log_targets_array = Array($confdroid_alloy::params::ay_log_targets, true)
|
||||
|
||||
file { $ay_main_file:
|
||||
ensure => file,
|
||||
@@ -173,7 +173,7 @@ class alloy_cd::main::files (
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('alloy_cd/config.alloy.erb'),
|
||||
content => template('confdroid_alloy/config.alloy.erb'),
|
||||
notify => Service[$ay_service],
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ class alloy_cd::main::files (
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('alloy_cd/logrotate.rsyslog.erb'),
|
||||
content => template('confdroid_alloy/logrotate.rsyslog.erb'),
|
||||
}
|
||||
|
||||
# manage log file group permissions
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd::main::install
|
||||
Puppet Class: confdroid_alloy::main::install
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd::main::install";
|
||||
pathId = "puppet_classes::confdroid_alloy::main::install";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd::main::install</span>
|
||||
<span class="title">confdroid_alloy::main::install</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd::main::install</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy::main::install</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class installs packages for the alloy_cd module
|
||||
Class installs packages for the confdroid_alloy module
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::main::install.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::main::install.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,13 +114,13 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
||||
|
||||
class alloy_cd::main::install (
|
||||
class confdroid_alloy::main::install (
|
||||
|
||||
) inherits alloy_cd::params {
|
||||
require alloy_cd::main::yumrepo
|
||||
) inherits confdroid_alloy::params {
|
||||
require confdroid_alloy::main::yumrepo
|
||||
|
||||
package { $reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
package { $ay_reqpackages:
|
||||
ensure => $ay_pkg_ensure,
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd::main::service
|
||||
Puppet Class: confdroid_alloy::main::service
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd::main::service";
|
||||
pathId = "puppet_classes::confdroid_alloy::main::service";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd::main::service</span>
|
||||
<span class="title">confdroid_alloy::main::service</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd::main::service</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy::main::service</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::main::service.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::main::service.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,10 +117,10 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
|
||||
|
||||
class alloy_cd::main::service (
|
||||
class confdroid_alloy::main::service (
|
||||
|
||||
) inherits alloy_cd::params {
|
||||
require alloy_cd::main::files
|
||||
) inherits confdroid_alloy::params {
|
||||
require confdroid_alloy::main::files
|
||||
|
||||
service { $ay_service:
|
||||
ensure => running,
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd::main::yumrepo
|
||||
Puppet Class: confdroid_alloy::main::yumrepo
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd::main::yumrepo";
|
||||
pathId = "puppet_classes::confdroid_alloy::main::yumrepo";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd::main::yumrepo</span>
|
||||
<span class="title">confdroid_alloy::main::yumrepo</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd::main::yumrepo</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy::main::yumrepo</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="alloy_cd_3A_3Aparams.html" title="puppet_classes::alloy_cd::params (puppet_class)">alloy_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_alloy_3A_3Aparams.html" title="puppet_classes::confdroid_alloy::params (puppet_class)">confdroid_alloy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
class install yum repos for the alloy_cd module
|
||||
class install yum repos for the confdroid_alloy module
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::main::yumrepo.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::main::yumrepo.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -120,9 +120,9 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/yumrepo.pp', line 6</span>
|
||||
|
||||
class alloy_cd::main::yumrepo (
|
||||
class confdroid_alloy::main::yumrepo (
|
||||
|
||||
) inherits alloy_cd::params {
|
||||
) inherits confdroid_alloy::params {
|
||||
# test
|
||||
yumrepo { 'grafana':
|
||||
ensure => 'present',
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: alloy_cd::params
|
||||
Puppet Class: confdroid_alloy::params
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::alloy_cd::params";
|
||||
pathId = "puppet_classes::confdroid_alloy::params";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (a)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">alloy_cd::params</span>
|
||||
<span class="title">confdroid_alloy::params</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: alloy_cd::params</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_alloy::params</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
@@ -67,17 +67,17 @@
|
||||
<dt>Inherited by:</dt>
|
||||
<dd>
|
||||
|
||||
<span class='object_link'><a href="alloy_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::alloy_cd::main::dirs (puppet_class)">alloy_cd::main::dirs</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_alloy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_alloy::main::dirs (puppet_class)">confdroid_alloy::main::dirs</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="alloy_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::alloy_cd::main::files (puppet_class)">alloy_cd::main::files</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_alloy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_alloy::main::files (puppet_class)">confdroid_alloy::main::files</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="alloy_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::alloy_cd::main::config (puppet_class)">alloy_cd::main::config</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_alloy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_alloy::main::config (puppet_class)">confdroid_alloy::main::config</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="alloy_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::alloy_cd::main::install (puppet_class)">alloy_cd::main::install</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_alloy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_alloy::main::install (puppet_class)">confdroid_alloy::main::install</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="alloy_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::alloy_cd::main::service (puppet_class)">alloy_cd::main::service</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_alloy_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_alloy::main::service (puppet_class)">confdroid_alloy::main::service</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="alloy_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::alloy_cd::main::yumrepo (puppet_class)">alloy_cd::main::yumrepo</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_alloy_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_alloy::main::yumrepo (puppet_class)">confdroid_alloy::main::yumrepo</a></span><br/>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -91,13 +91,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class contains all parameters for the alloy_cd module.
|
||||
Class contains all parameters for the confdroid_alloy module.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>alloy_cd::params.pp Module name: alloy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_alloy::params.pp Module name: confdroid_alloy Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,7 +110,7 @@
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>reqpackages</span>
|
||||
<span class='name'>ay_reqpackages</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
@@ -128,7 +128,7 @@
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>pkg_ensure</span>
|
||||
<span class='name'>ay_pkg_ensure</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
@@ -335,10 +335,10 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 17</span>
|
||||
|
||||
class alloy_cd::params (
|
||||
class confdroid_alloy::params (
|
||||
|
||||
String $reqpackages = 'alloy',
|
||||
String $pkg_ensure = 'latest',
|
||||
String $ay_reqpackages = 'alloy',
|
||||
String $ay_pkg_ensure = 'latest',
|
||||
|
||||
# loki
|
||||
Boolean $ay_manage_loki = true,
|
||||
@@ -365,7 +365,7 @@ class alloy_cd::params (
|
||||
$ay_main_file = "${ay_main_dir}/config.alloy"
|
||||
|
||||
# includes must be last
|
||||
include alloy_cd::main::config
|
||||
include confdroid_alloy::main::config
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -53,24 +53,34 @@ loki.write "loki" {
|
||||
}
|
||||
<% end -%>
|
||||
<% if @ay_manage_prom == true -%>
|
||||
// Metrics collection
|
||||
prometheus.exporter.unix "system_metrics" {
|
||||
include_exporter_metrics = true
|
||||
disable_collectors = ["mdadm"]
|
||||
// 1. Exporter (or keep your existing node_exporter binary)
|
||||
prometheus.exporter.unix "node" {
|
||||
// optional: disable unused collectors
|
||||
// disable_collectors = ["ipvs", "btrfs", ...]
|
||||
}
|
||||
|
||||
prometheus.scrape "scrape_system" {
|
||||
targets = prometheus.exporter.unix.system_metrics.targets
|
||||
forward_to = [prometheus.remote_write.prometheus.receiver]
|
||||
scrape_interval = "15s"
|
||||
// 2. Relabel the targets so instance = real hostname
|
||||
discovery.relabel "node_exporter" {
|
||||
targets = prometheus.exporter.unix.node.targets
|
||||
|
||||
rule {
|
||||
target_label = "instance"
|
||||
replacement = constants.hostname
|
||||
}
|
||||
|
||||
rule {
|
||||
target_label = "job"
|
||||
replacement = "integrations/node_exporter"
|
||||
}
|
||||
}
|
||||
<% if @ay_manage_ne == true -%>
|
||||
|
||||
// 3. Scrape the properly labeled targets
|
||||
prometheus.scrape "node_exporter" {
|
||||
targets = [{ __address__ = "localhost:9100" }]
|
||||
targets = discovery.relabel.node_exporter.output
|
||||
forward_to = [prometheus.remote_write.prometheus.receiver]
|
||||
scrape_interval = "15s"
|
||||
}
|
||||
<% end -%>
|
||||
|
||||
prometheus.remote_write "prometheus" {
|
||||
endpoint {
|
||||
url = "<%= @ay_prom_url %>"
|
||||
|
||||
Reference in New Issue
Block a user