On 17 August 2017 at 07:12, Peter Faller wrote:
> While trying to use the PDK on Windows (instead of using a Linux VM for
> development), I've come across a few hitches:
>
> 1) 'rake' is not available as a command (it is accessible via
> $env:DEVKIT_BASEDIR/private/private\ruby\2.1.9\bin\rake tho
Hi David
Thanks for pointing out 'pdk bundle' - it does provide what I was looking
for. It is however a bit noisy (but that's not a big deal):
PS> pdk bundle exec -- rspec .\spec\classes\apg_base_spec.rb
.
Finished in 7.81 seconds (files took 1.85 seconds to load)
1 example, 0 failures
C:/Prog
Good morning,
We installed a puppet agent on our citrix mgmt servers.
The problem became that the way it is done a golden image is used,
server_dev. Once sealed that spins off multiple other servers for stage and
prod environments.
We want to know about the servers, ensure they are in configura
On 17 August 2017 at 12:11, Peter Faller wrote:
> Hi David
>
> Thanks for pointing out 'pdk bundle' - it does provide what I was looking
> for. It is however a bit noisy (but that's not a big deal):
>
> PS> pdk bundle exec -- rspec .\spec\classes\apg_base_spec.rb
> .
>
> Finished in 7.81 seconds
> On 17 Aug 2017, at 14:23, Jason McMahan wrote:
>
> Good morning,
> We installed a puppet agent on our citrix mgmt servers.
> The problem became that the way it is done a golden image is used,
> server_dev. Once sealed that spins off multiple other servers for stage and
> prod environments.
Hi David
Reduced example manifest and test attached ...
On Linux:
[root@tstpuppet01 rimcdm]# rspec spec/defines/test_reduced_spec.rb
.
Finished in 0.79952 seconds (files took 2.66 seconds to load)
1 example, 0 failures
On Windows:
PS rimcdm> pdk bundle exec -- rspec .\spec\defines\test_redu
Oh, that was easier than expected: rspec-puppet does not provide a default
set of facts to your tests. Without any facts, puppet assumes your "host"
OS as test environment. Since your test is targeting a Linux machine, when
running the tests on Windows, this assumption is wrong.
To fix, use rspec-
Today, we released Puppet agent 5.1.0!
Components updated in this release include Puppet, Facter, and MCollective.
We've also added a new platform, packages are now available for Puppet
agent 5.1.0 for Debian 9.
Read the Puppet agent release notes for full details:
https://docs.puppet.com/puppet