[Puppet Users] Re: Puppet 4 under Ubuntu 16.04

2016-10-17 Thread Isaiah Frantz
You can not install puppetserver without jdk though because it is a java 
program.
You can, however, install the puppet agent (doesnt require/use jdk) and 
write a simple pp to install the jdk, puppetserver, other packagages, and 
config the server with puppet apply.


On Friday, October 14, 2016 at 8:26:34 AM UTC-7, Ilia Ternovich wrote:
>
> Hi,
>
> Is there any way of installing puppetmaster 4 into Ubuntu 16.04?
>
> I have read numerous articles in internet regarding importing 
> https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb -- but this 
> does not work. Latest version is always 3.8
>
> Please advise.
>
> Thanks
>

-- 
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/d5f940ed-599d-4ef5-ad21-19e7bcaef43e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] resource collector with multiple 'tag !=' test

2016-09-22 Thread Isaiah Frantz
I disagree, the way it works breaks basic logic.
With the == case, if the property is an array type, the code will only 
return objects that contain the term.
The != case only checks for equality, regardless of the object type. It 
*should*, in my opinion, follow basic negation rules and do the opposite of 
the == case. We should get back objects that dont equal or contain the term.

That makes sense and follows all the normal behaviour you should expect 
from searching through objects, array or otherwise.

I have submitted a jira ticket with a pull request if you are interested in 
more detail:
https://tickets.puppetlabs.com/browse/PUP-6723

On Wednesday, September 21, 2016 at 11:30:52 PM UTC-7, Johan De Wit wrote:
>
>
>
> -Original message-
> *From:* Isaiah Frantz <isaiah...@gmail.com >
> *Sent:* Wednesday 21st September 2016 21:35
> *To:* Puppet Users <puppet...@googlegroups.com >
> *Subject:* [Puppet Users] resource collector with multiple 'tag !=' test
>
> Hello, 
> I am trying to realize users and am not getting what I expect with 
> multiple != test.
> Here is a simplified version that I have tested with puppet gem 4.2.2 and 
> 4.6.2 (results were the same for all tests):
> cat t.ppt.pp (common to all tests): 
> @notify {'This is a test 1':
> tag => 'one'
> }
> @notify {'This is a test 2':
> tag => 'two'
> }
> @notify {'This is a test 3':
> tag => ['one', 'two']
> }
> @notify {'This is a test 4':
> tag => 'three'
> }
> Notify <| test_goes_here |>
>
> First 3 expected:
> tail -1 t.pp 
> Notify <| tag == 'one' or tag == 'two' |>
>
> puppet apply t.pp 
> Notice: Compiled catalog for defiant.cequintecid.com in environment 
> production in 0.70 seconds
> Notice: This is a test 1
> Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 
> 'message' as 'This is a test 1'
> Notice: This is a test 2
> Notice: /Stage[main]/Main/Notify[This is a test 2]/message: defined 
> 'message' as 'This is a test 2'
> Notice: This is a test 3
> Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
> 'message' as 'This is a test 3'
> Notice: Applied catalog in 0.02 seconds
>
>
> Test 3 only, as expected:
> tail -1 t.pp 
> Notify <| tag == 'one' and tag == 'two' |>
>
> puppet apply t.pp 
> Notice: Compiled catalog for defiant.cequintecid.com in environment 
> production in 0.47 seconds
> Notice: This is a test 3
> Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
> 'message' as 'This is a test 3'
> Notice: Applied catalog in 0.02 seconds
>
> Now we get to the '!=' tests.
> with a single tag it works as expected so I wont take space here to show 
> that.
> With multiple tags, it does not work as expected
>
> Since tags is a hash that contains lots of things, including all explicit 
> tag's set on a resource. The == and != operators are supposed to act like 
> contains and !contains functions (or so I thought)
> Here I expect to only get test 4. 1 and 2 are filtered because one of the 
> and'ed tests is false.
> 3 should fail too because both test are false: tags contains both 'one' 
> and 'two'. 
> tail -1 t.pp 
> Notify <| tag != 'one' and tag != 'two' |>
>
> puppet apply t.pp 
> Notice: Compiled catalog for defiant.cequintecid.com in environment 
> production in 0.48 seconds
> Notice: This is a test 3
> Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
> 'message' as 'This is a test 3'
> Notice: This is a test 4
> Notice: /Stage[main]/Main/Notify[This is a test 4]/message: defined 
> 'message' as 'This is a test 4'
> Notice: Applied catalog in 0.01 seconds
>
>
> Frankly, I also expect that 3 should be filtered from the or version too 
> because neither of the tests should be true if this is a contains function 
> and not one that tests against each hash value.
> tail -1 t.pp   
>   
> Notify <| tag != 'one' or tag != 'two' |>
>
> puppet apply t.pp 
> Notice: Compiled catalog for defiant.cequintecid.com in environment 
> production in 0.58 seconds
> Notice: This is a test 1
> Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 
> 'message' as 'This is a test 1'
> Notice: This is a test 2
> Notice: /Stage[main]/Main/Notify[This is a test 2]/message: defined 
> 'message' as 'This is a test 2'
> Notice: This is a test 3
> Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
> 'message' as 'This is a test 3'
> Notice: This is a test 4
> Notice: /Stage[main]/Main/Notify[This is a test 4]/message: defined 
> 

[Puppet Users] resource collector with multiple 'tag !=' test

2016-09-21 Thread Isaiah Frantz
Hello,
I am trying to realize users and am not getting what I expect with multiple 
!= test.
Here is a simplified version that I have tested with puppet gem 4.2.2 and 
4.6.2 (results were the same for all tests):
cat t.ppt.pp (common to all tests): 
@notify {'This is a test 1':
tag => 'one'
}
@notify {'This is a test 2':
tag => 'two'
}
@notify {'This is a test 3':
tag => ['one', 'two']
}
@notify {'This is a test 4':
tag => 'three'
}
Notify <| test_goes_here |>

First 3 expected:
tail -1 t.pp 
Notify <| tag == 'one' or tag == 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment 
production in 0.70 seconds
Notice: This is a test 1
Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 
'message' as 'This is a test 1'
Notice: This is a test 2
Notice: /Stage[main]/Main/Notify[This is a test 2]/message: defined 
'message' as 'This is a test 2'
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
'message' as 'This is a test 3'
Notice: Applied catalog in 0.02 seconds


Test 3 only, as expected:
tail -1 t.pp 
Notify <| tag == 'one' and tag == 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment 
production in 0.47 seconds
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
'message' as 'This is a test 3'
Notice: Applied catalog in 0.02 seconds

Now we get to the '!=' tests.
with a single tag it works as expected so I wont take space here to show 
that.
With multiple tags, it does not work as expected

Since tags is a hash that contains lots of things, including all explicit 
tag's set on a resource. The == and != operators are supposed to act like 
contains and !contains functions (or so I thought)
Here I expect to only get test 4. 1 and 2 are filtered because one of the 
and'ed tests is false.
3 should fail too because both test are false: tags contains both 'one' and 
'two'. 
tail -1 t.pp 
Notify <| tag != 'one' and tag != 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment 
production in 0.48 seconds
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
'message' as 'This is a test 3'
Notice: This is a test 4
Notice: /Stage[main]/Main/Notify[This is a test 4]/message: defined 
'message' as 'This is a test 4'
Notice: Applied catalog in 0.01 seconds


Frankly, I also expect that 3 should be filtered from the or version too 
because neither of the tests should be true if this is a contains function 
and not one that tests against each hash value.
tail -1 t.pp   
  
Notify <| tag != 'one' or tag != 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment 
production in 0.58 seconds
Notice: This is a test 1
Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 
'message' as 'This is a test 1'
Notice: This is a test 2
Notice: /Stage[main]/Main/Notify[This is a test 2]/message: defined 
'message' as 'This is a test 2'
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 
'message' as 'This is a test 3'
Notice: This is a test 4
Notice: /Stage[main]/Main/Notify[This is a test 4]/message: defined 
'message' as 'This is a test 4'
Notice: Applied catalog in 0.02 seconds



Two boolean falses dont make a true do they?
Im confused  :(

-- 
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/e31573bc-b306-482b-bf64-762a0ba9dfca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.