summaryrefslogtreecommitdiffstats
path: root/puppet-host-package
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2014-04-02 17:41:18 -0400
committerTodd Zullinger <tmz@pobox.com>2014-04-02 17:41:18 -0400
commit5f5282b2dbcb4653b2b4e6d21eadfd5cdfacb833 (patch)
treeacd64d2bfabca93acc63df609628969e80a94fd4 /puppet-host-package
parente0d9ca89b78f7b0d76e8d6e6d6678f854096d889 (diff)
downloadpuppet-host-package-5f5282b2dbcb4653b2b4e6d21eadfd5cdfacb833.tar.gz
puppet-host-package-5f5282b2dbcb4653b2b4e6d21eadfd5cdfacb833.tar.xz
puppet-host-package-5f5282b2dbcb4653b2b4e6d21eadfd5cdfacb833.zip
Add --package-type option and allow tar to be used
For systems we don't support with proper OS packages, a tarball is better than nothing. We already generate one, this just allows us to save it rather than remove it as part of the cleanup process. RPM remains the default package type.
Diffstat (limited to 'puppet-host-package')
-rwxr-xr-xpuppet-host-package2
1 files changed, 2 insertions, 0 deletions
diff --git a/puppet-host-package b/puppet-host-package
index 60ef9d1..56b0f32 100755
--- a/puppet-host-package
+++ b/puppet-host-package
@@ -55,6 +55,8 @@ def _main():
help='RPM spec file template [%default]')
parser.add_option('-v', '--verbose', dest='verbose', action='count',
help='Be verbose (may be used more than once)')
+ parser.add_option('--package-type',
+ help='Package type (%s) [%s]' % (', '.join(sorted(puppethost.package_types)), '%default'))
opts, args = parser.parse_args()
if opts.force: