debian/bullseye
debian/jessie
|
Last change
on this file since 1bdb08d was 1bdb08d, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago |
|
Added puppet agent run to the gnuboat-puppet postinst script
|
-
Property mode
set to
100644
|
|
File size:
457 bytes
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | #!/bin/bash
|
|---|
| 3 |
|
|---|
| 4 | set -e
|
|---|
| 5 |
|
|---|
| 6 | # Run puppet, if wanted by the user (in upgrade case)
|
|---|
| 7 | if [ "$1" = configure" ]; then
|
|---|
| 8 | if [ ! -z "$2"]; then
|
|---|
| 9 | # it's an upgrade
|
|---|
| 10 | # Source debconf library.
|
|---|
| 11 | . /usr/share/debconf/confmodule
|
|---|
| 12 |
|
|---|
| 13 | db_get gnuboat-puppet/runpuppetagent
|
|---|
| 14 | if [ "$RET" = "true" ]; then
|
|---|
| 15 | puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/ || true
|
|---|
| 16 | fi
|
|---|
| 17 |
|
|---|
| 18 | fi
|
|---|
| 19 | fi
|
|---|
| 20 |
|
|---|
| 21 | #DEBHELPER#
|
|---|
| 22 |
|
|---|
| 23 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.