๐ŸŒ AIๆœ็ดข & ไปฃ็† ไธป้กต
Skip to content

circa10a/local-puppet-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

local-puppet-dev

Simple docker setup for testing puppet modules

Usage

Start standalone puppet server

docker compose up -d

Execute puppet agent

# Daemon that executes the agent every 15s
./run_puppet_agent.sh

Puppetfile

Puppet module dependencies should be added to the Puppetfile. Modules will be installed when you launch the ./run_puppet_agent.sh daemon.

Modules

See module structure docs

  • The ./modules directory is the source for all custom puppet modules.
    • These are mapped into /etc/puppetlabs/code/modules in the puppet container.
    • Modules installed via the Puppetfile are installed in /etc/puppetlabs/code/environments/production/modules
  • Changes made are reflected instantly.
modules
โ””โ”€โ”€ my_module
    โ”œโ”€โ”€ data
    โ”‚   โ””โ”€โ”€ common.yaml
    โ”œโ”€โ”€ files
    โ”‚   โ””โ”€โ”€ sample.json
    โ”œโ”€โ”€ hiera.yaml
    โ”œโ”€โ”€ lib
    โ”‚   โ”œโ”€โ”€ facter
    โ”‚   โ””โ”€โ”€ puppet
    โ”œโ”€โ”€ manifests
    โ”‚   โ”œโ”€โ”€ file_loop.pp
    โ”‚   โ””โ”€โ”€ init.pp
    โ””โ”€โ”€ templates
        โ””โ”€โ”€ sample_template.json.epp

Manifests

The entrypoint(site.pp) contains our custom modules, therefore executing them.

  • The manifests directory is mapped into /etc/puppetlabs/code/environments/production/manifests in the puppet container.
manifests
โ””โ”€โ”€ site.pp

About

Docker setup for testing puppet manifests

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •