- deploy the puppet-initial service - deploy the puppet-initial script - prepare puppet service for puppet-initial - ensure cert installed
42 lines
925 B
YAML
42 lines
925 B
YAML
# nfpm.yaml
|
|
|
|
name: puppet-initial
|
|
version: ${PACKAGE_VERSION}
|
|
release: ${PACKAGE_RELEASE}
|
|
arch: amd64
|
|
platform: linux
|
|
section: default
|
|
priority: extra
|
|
description: "A script and service to initialise puppet for the unkin environmnet."
|
|
|
|
maintainer: UNKIN
|
|
license: MIT
|
|
|
|
disable_globbing: false
|
|
|
|
depends:
|
|
- unkin-ca-certificates
|
|
- puppet-agent
|
|
|
|
# Files to include in the package
|
|
contents:
|
|
- src: /app/resources/puppet-initial
|
|
dst: /usr/local/bin/puppet-initial
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
- src: /app/resources/puppet-initial.service
|
|
dst: /usr/lib/systemd/system/puppet-initial.service
|
|
file_info:
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
# Scripts to run during installation/removal (optional)
|
|
scripts:
|
|
postinstall: ./scripts/postinstall.sh
|
|
preremove: ./scripts/preremove.sh
|
|
postremove: ./scripts/postremove.sh
|
|
preinstall: ./scripts/preinstall.sh
|