OP#437 add required content
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -57,7 +57,6 @@ pipeline {
|
|||||||
sh '''
|
sh '''
|
||||||
git config user.name "Jenkins Server"
|
git config user.name "Jenkins Server"
|
||||||
git config user.email jenkins@confdroid.com
|
git config user.email jenkins@confdroid.com
|
||||||
git rm -r --cached docs || echo "No docs to remove from git"
|
|
||||||
git rm -r --cached .vscode || echo "No .vscode to remove from git"
|
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 add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
|
||||||
git push origin HEAD:master
|
git push origin HEAD:master
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ cd /path/to/your/repositories
|
|||||||
git clone https://sourcecode.confdroid.com/confdroid/control_repo_template.git r10k-control-repo
|
git clone https://sourcecode.confdroid.com/confdroid/control_repo_template.git r10k-control-repo
|
||||||
```
|
```
|
||||||
- use your favorite editor or IDE to edit files
|
- use your favorite editor or IDE to edit files
|
||||||
|
- the site.pp example only contains suggestions. Fill in to your requirements.
|
||||||
|
|
||||||
## Contact Us
|
## Contact Us
|
||||||
|
|
||||||
|
|||||||
3
environment.conf
Normal file
3
environment.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
manifest = manifests/site.pp
|
||||||
|
modulepath = modules:site
|
||||||
|
|
||||||
28
manifests/site.pp
Normal file
28
manifests/site.pp
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
### Site.pp for the <your environment> environment @ <your site>
|
||||||
|
|
||||||
|
### variable for the puppet master
|
||||||
|
$puppetserver = '<your puppetmaster>'
|
||||||
|
|
||||||
|
# exec paths
|
||||||
|
Exec { path => ['/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/'] }
|
||||||
|
|
||||||
|
# create file bucket for backups
|
||||||
|
filebucket { 'main':
|
||||||
|
path => false, # This is required for remote filebuckets.
|
||||||
|
}
|
||||||
|
|
||||||
|
# create backups when replacing files
|
||||||
|
File { backup => main, }
|
||||||
|
|
||||||
|
# virtual packages
|
||||||
|
Package {
|
||||||
|
allow_virtual => false,
|
||||||
|
}
|
||||||
|
|
||||||
|
### global firewall ###
|
||||||
|
Firewall {
|
||||||
|
before => Class['my-fw::post'],
|
||||||
|
require => Class['my-fw::pre'],
|
||||||
|
}
|
||||||
|
class {['my-fw::pre', 'my-fw::post']: }
|
||||||
|
class { 'my-fw': }
|
||||||
Reference in New Issue
Block a user