search for: ignoreimport

Displaying 12 results from an estimated 12 matches for "ignoreimport".

2007 Aug 07
5
parsing manifests in a pre-commit hook
Hello, I was wondering if there is a way to parse individual manifest files as part of a pre-commit hook in subversion. I am looking for something like puppetmasterd --parseonly, but that will work on individual files. This way I can reject a commit if it does not pass. Any ideas? TIA
2010 Dec 10
2
Problem with syntax checking
...o use pre-commit SVN hook for checking puppet syntax. For it I try to use some scripts from this thread: http://groups.google.com/group/puppet-users/browse_thread/thread/50ff2eb268f982da?pli=1 But when I try some of the scripts I see the common problem, expression like this: # puppet --parseonly --ignoreimport file.pp produces no output, but "file.pp" has a known broken syntax. What I need to change in this statement to see information about syntax errors at STDOUT? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gro...
2007 Oct 03
4
puppet exit codes and svn pre-commit hook
Hi everyone, I''m using a svn pre-commit hook to check manifests for syntax errors. I''ve recently upgraded puppet from 0.22.4 to 0.23.2 and the hook stopped working. I use the following command to parse .pp files: /usr/local/bin/puppet --confdir=/tmp --vardir=/tmp --parseonly --ignoreimport /tmp/$$.pp Now, I make a decision based on the exit code. If 0 then commit, else exit and show the error message. It looks like new puppet always returns 0 regardless if there were syntax errors or not. Is this normal? I''m doing this on FreeBSD 6.1 Cheers, Andrew -- __/_/_ w:...
2009 Feb 04
1
Issue with template.pp
...debian } } include baseapps, sshd, admin, default } <=== line 7 node default inherits basenode {} I receive an error. err: Could not parse for environment production: Syntax error at ''}'' at /etc/puppet/manifests/templates.pp:7 when i run : puppet --parseonly --ignoreimport /etc/puppet/manifests/ templates.pp I verified the sytanx. But no luck. Still i have prbs. I require help with this. puppet version - 0.24.4-8 OS - ubuntu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Pup...
2007 Mar 19
11
Parsechecking in a commit hook
This has been a much-requested feature, and is now a reality (in svn trunk): There is a new option, --ignoreimport, that will (surprisingly) ignore import statements. This is really only useful when using -- parseonly in a commit hook, and note that you''ll have to add the option to --parseonly, none of the puppet executables will add it for you. You should be able to parse-check a single file...
2008 Jan 17
1
SVN pre-commit hook
Hi is anybody using the svn pre-commit hook from http://www.reductivelabs.com/trac/puppet/wiki/VersionControlPuppet with 0.24.1 . It was working fine with 0.23.1 and I like it to test stupid typos before checking in. However after updating to 0.24.1 I get the following error for the site.pp: Could not parse for environment development: No file(s) found for import of
2007 Apr 09
0
Mercurial commit hooks...
...l as my SCM system. So I was wondering if someone out there knows mercurial well enough to write a commit hook? I''ve tried myself, and came up with this: pretxncommit.parsecheck_puppet = hg log -v -r $HG_NODE | sed -n ''/ ^files:/{s/^.*: *//p;}'' | puppet --parseonly --ignoreimport $1 ...but I don''t know the variable to give mercurial; $HG_NODE doesn''t work. Anyone out there using mercurial...? -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
2012 Aug 23
1
Puppet Agent VS User
.../puppet/ssl/csr_vusion-production.pem hostprivkey = /var/lib/puppet/ssl/private_keys/vusion-production.pem hostpubkey = /var/lib/puppet/ssl/public_keys/vusion-production.pem http_compression = false http_proxy_host = none http_proxy_port = 3128 httplog = /var/log/puppet/http.log ignorecache = false ignoreimport = false ignoreschedules = false inventory_port = 8140 inventory_server = puppet inventory_terminus = facter keylength = 1024 lastrunfile = /var/lib/puppet/state/last_run_summary.yaml lastrunreport = /var/lib/puppet/state/last_run_report.yaml ldapattrs = all ldapbase = "" ldapclassattrs =...
2011 Feb 22
1
ANNOUNCE: Puppet 2.6.5 - Release Candidate 5 available!
...y before the uid property, thus minimizing room for damage when usermod is in use. 1131ad7 (#4943) Add puppet inspect application e005cc7 maint: Remove bogus mongrel test c908fdb (#5261) Fix #5261 Don''t escape Unicode characters in PSON b27e9b4 [#5081] Revert "Fix #4349 - Parsing with ignoreimport=true was always loading site.pp" af6e08c (#5304) Use internal_name rather than real_name for maillist provider -- Paul Berry -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googleg...
2011 Feb 04
1
ANNOUNCE: Puppet 2.6.5 - Release Candidate 1 available!
...y before the uid property, thus minimizing room for damage when usermod is in use. 1131ad7 (#4943) Add puppet inspect application e005cc7 maint: Remove bogus mongrel test c908fdb (#5261) Fix #5261 Don''t escape Unicode characters in PSON b27e9b4 [#5081] Revert "Fix #4349 - Parsing with ignoreimport=true was always loading site.pp" af6e08c (#5304) Use internal_name rather than real_name for maillist provider -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. T...
2011 Feb 04
2
Fwd: [Puppet-dev] ANNOUNCE: Puppet 2.6.5 - Release Candidate 1 available!
...y before the uid property, thus minimizing room for damage when usermod is in use. 1131ad7 (#4943) Add puppet inspect application e005cc7 maint: Remove bogus mongrel test c908fdb (#5261) Fix #5261 Don''t escape Unicode characters in PSON b27e9b4 [#5081] Revert "Fix #4349 - Parsing with ignoreimport=true was always loading site.pp" af6e08c (#5304) Use internal_name rather than real_name for maillist provider -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. T...
2011 Nov 04
1
Storeconfigs and nagios and foreman
...res the CA certificate. # The default value is ''$certdir/ca.pem''. localcacert = /etc/puppet/ssl/certs/ca.pem # A parameter that can be used in commit # hooks, since it enables you to parse-check a single file rather # than requiring that all files exist. # ignoreimport = false # What files to ignore when pulling down facts. # The default value is ''.svn CVS''. # factsignore = .svn CVS # A command to run after every agent run. If this command returns a non-zero # return code, the entire Puppet run will be considered to have f...