Re: [Puppet Users] Using VS Code with PDK -- how can I manually run puppet-lint?

2022-12-05 Thread Martin Alfke
PDK allows you to also run rake tasks

pdk bundle exec rake -T

Gives you an overview on available rake tasks.


> On 5. Dec 2022, at 07:08, Dan Mahoney  wrote:
> 
> It turns out the answer to my second question is:
> 
> gem install voxpupuli-puppet-lint-plugins
> 
> ...which seems to be a meta package that installs most of the nonstandard 
> plugins which were then adopted by pdk.
> 
> I'm not sure how we can get those added to official puppet-lint so this step 
> isn't necessary.
> 
> On Sunday, December 4, 2022 at 3:31:18 AM UTC-8 Dan Mahoney wrote:
>> Hey there all,
>> 
>> I apologize if this is off-topic.  If it is, please do let me know where 
>> better to ask.  I tried joining the puppet-vscode slack but it apparently 
>> only works if I have a puppet.com  email address.
>> 
>> I'm on a mac, using Visual Studio Code with the PDK installed via homebrew.  
>> The version of puppet-lint included with the PDK runs WAY more tests than 
>> any previous version of puppet-lint.
>> 
>> So, here are my questions:
>> 
>> 1) Obviously the vscode plugin is running some version of puppet-lint behind 
>> the scenes, but it's unclear as to how I can run that manually in a terminal 
>> (perhaps with --fix).  When I installed pdk, it put it in 
>> /opt/puppetlabs/pdk/bin/pdk, but didn't do anything like that for 
>> puppet-lint.
>> 
>> 2) Is there an easy way to grab those extra tests for a system that doesn't 
>> have them?  It looks to be like 20 different ruby gems, all dumped into 
>> /opt/puppetlabs/pdk/share/cache/ruby/2.5.0/gems
>> 
>> ls |grep lint | grep check
>> puppet-lint-absolute_classname-check-3.0.1
>> puppet-lint-anchor-check-1.0.1
>> puppet-lint-classes_and_types_beginning_with_digits-check-1.0.0
>> puppet-lint-file_ensure-check-1.0.0
>> puppet-lint-leading_zero-check-1.0.0
>> puppet-lint-legacy_facts-check-1.0.4
>> puppet-lint-lookup_in_parameter-check-1.0.0
>> puppet-lint-manifest_whitespace-check-0.1.17
>> puppet-lint-optional_default-check-1.0.0
>> puppet-lint-params_empty_string-check-1.0.0
>> puppet-lint-strict_indent-check-2.0.8
>> puppet-lint-top_scope_facts-check-1.0.1
>> puppet-lint-topscope-variable-check-1.0.1
>> puppet-lint-trailing_comma-check-0.4.2
>> puppet-lint-unquoted_string-check-2.1.0
>> puppet-lint-version_comparison-check-1.0.0
>> 
>> 
>> 
>> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/f029a449-27e1-42a3-a512-660f5d864eb8n%40googlegroups.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/F6189B0A-A32D-4D09-A9E1-D13A420D7505%40gmail.com.


Re: [Puppet Users] Create a variable out of a bash command and notify it

2022-12-05 Thread Nir Fishler
Thanks a lot guys for your prompt reply!

Gonna try it out later on.

On Monday, December 5, 2022 at 9:47:52 AM UTC+2 dhei...@opentext.com wrote:

> Am Sonntag, dem 04.12.2022 um 07:43 -0800 schrieb Nir Fishler:
>
> Main goal: get a list of upgrade-able packages and notify the user about 
> it.
>
>
> The puppetlabs-apt module from the Puppet Forge has various facts for this.
>
> HTH...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/af3e512b-5b91-4c2b-99bf-d9a2206c85b0n%40googlegroups.com.