diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-21 21:45:18 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-21 21:45:18 +0200 |
commit | 1b7a898c7a336778c0e43ce6e26a36e43cf1080b (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /manifests/template_final.pp | |
parent | Reordering. (diff) | |
download | nspawn-1b7a898c7a336778c0e43ce6e26a36e43cf1080b.tar.gz nspawn-1b7a898c7a336778c0e43ce6e26a36e43cf1080b.tar.xz |
Remove everything.
Remove everything in the module, to make room for a new module in its
place (but keeping the history, just in case).
The problem with this module was that it tried way to hard to handle the
machines by itself, while that should be done outside puppet.
The new module will have a much simpler idea of how to provission, not
attempt to build machines from scratch, and especially not do anything
expensive.
Diffstat (limited to '')
-rw-r--r-- | manifests/template_final.pp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/manifests/template_final.pp b/manifests/template_final.pp deleted file mode 100644 index 4ab5a9d..0000000 --- a/manifests/template_final.pp +++ /dev/null @@ -1,42 +0,0 @@ -define nspawn::template_final ( - String $root, - String $puppet_server, - String $template = $name, -) { - exec { "Enable puppet on ${template}": - command => [ '/usr/bin/systemd-nspawn', - '-M', $template, - '--quiet', - 'systemctl', 'enable', 'puppet', - ], - creates => "${root}/etc/systemd/system/multi-user.target.wants/puppet.service", - } - - file { "${root}/etc/systemd/system/puppet.service.requires": - ensure => directory, - } - - # This is nice in theory, but has the problem that - # network-online.target is reached on our first IP-address, which - # will probably be our static IPv4 address, and busting.adrift.space - # isn't resolvable over IPv4... - file { "${root}/etc/systemd/system/puppet.service.requires/network-online.target": - ensure => link, - # Debian requires /lib, arch accepts it - target => '/lib/systemd/system/network-online.target' - } - - file { [ "${root}/etc/puppetlabs", - "${root}/etc/puppetlabs/puppet" ] : - ensure => directory, - } - - - file { "${root}/etc/puppetlabs/puppet/puppet.conf": - ensure => file, - content => @("EOF") - [main] - server = ${puppet_server} - | EOF - } -} |