Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Puppet to 4.10.6 analog to oracle-userland #3509

Closed
wants to merge 4 commits into from

Conversation

@Toasterson
Copy link
Contributor

Toasterson commented Sep 20, 2017

I kept our custom types and providers even if oracle-userland does not, as they have not landed yet upstream.

@@ -0,0 +1,98 @@
From d68b018f2d30df2824335b579ee3bff4c10cb1e0 Mon Sep 17 00:00:00 2001

This comment has been minimized.

Copy link
@pyhalov

pyhalov Sep 20, 2017

Contributor

This patch relies on PuppetAudit class, which is provided by ext/* in upstream repository and likely will need some work to port to OI.

@pyhalov
Copy link
Contributor

pyhalov commented Sep 20, 2017

Also solaris-userland has more patches. At least 0004-no-upstream-install-path-changes.patch, 0005-PUP-7745-package-latest-method-does-not-refresh-meta.patch look like they should be imported.

@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

I SPecifically did not include these patches because for 0004 only changes the enterprise puppet location and does not influence the path where puppet is put. It would not be correct acccording to puppet documentation. For 0005 we don't need that as our pkg still refreshes metadata on every run. At least it say to do that when I want to install Software.

@pyhalov
Copy link
Contributor

pyhalov commented Sep 20, 2017

I was under impression that it changes location where puppet looks for things, and as we put it under /usr, it should be changed.

@pyhalov
Copy link
Contributor

pyhalov commented Sep 20, 2017

As for 0005-PUP-7745-package-latest-method-does-not-refresh-meta.patch, it does 'pkg refresh' before pkg list, and we do not do this automatically, so I consider it should be included.

@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

For the Path changes as far as I can tell they are all configurable with puppet config utility / configurationfile. From the Upstream Site they say the merged the enterprise and opensource code into one and thus the paths aswell. It is up to us if we want to change them. However I am not sure if this would not break something if somebody decides to install enterprise edition (unlikely but possible). It is also something that is wildly inconsistent among *Nix oses. I personally always prefer to stick to upstream in such cases. Just so that we are not breaking something. I will be using puppet over the next few weeks so we could include the patch and if something breaks take it out again. What would be your preference?

@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

As for the pkg changes: I did not think about pkg list -a.... Inegrating that patch now.

@Toasterson Toasterson force-pushed the Toasterson:puppet-410 branch from 9de78e5 to 317f5df Sep 20, 2017
@pyhalov
Copy link
Contributor

pyhalov commented Sep 20, 2017

I will be using puppet over the next few weeks so we could include the patch and if something breaks take it out again. What would be your preference?

Yes. When we are on Solarish system, I believe Solaris team knows better than software developers...

@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

True that.

Sidenote from my vpn zone this happens when issuing pkg list -a

$ pkg list -a openvpn
Refreshing catalog 1/1 openindiana.org 316.81 kB
@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

All changes puhed as requested

@pyhalov
Copy link
Contributor

pyhalov commented Sep 20, 2017

Check manifests, they include *.~1~ files!!!

Couldn't find 'usr/ruby/2.3/lib/ruby/vendor_ruby/2.3.0/puppet/agent.rb.~1~' in any of the specified search directories:
...
@Toasterson Toasterson force-pushed the Toasterson:puppet-410 branch from 317f5df to addaf2f Sep 20, 2017
@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

Huh Wat are those even? can't be vi files. Anyway fixed. They are removed.

@pyhalov
Copy link
Contributor

pyhalov commented Sep 20, 2017

puppet agent --test --verbose
Info: Creating a new SSL key for buildzone.oi-build.r61.net
/usr/sbin/svcadm: illegal option -- s

Where does it come from??? Looks like command is missed...

@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

i would say either one of our providers or one of patches. Could be the mark as degraded? I'll have more time tomorrow to check.

@pyhalov
Copy link
Contributor

pyhalov commented Sep 20, 2017

And we still miss 0004-no-upstream-install-path-changes.patch . Without it puppet tries to create /opt/puppetlabs/...

@Toasterson Toasterson force-pushed the Toasterson:puppet-410 branch from addaf2f to 2468492 Sep 20, 2017
@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 20, 2017

Oh sorry thought I added that one...

@Toasterson
Copy link
Contributor Author

Toasterson commented Sep 26, 2017

I have tested it on my system the past few days and it works as expected. If you don't have anything else to add I would say ship it.

@pyhalov
Copy link
Contributor

pyhalov commented Oct 13, 2017

I've created Toasterson#1 to fix issues on 'puppet agent --test --verbose'

puppet: not all svcadm method on illumos have "-s" option
dir path=var/lib/puppet owner=puppet group=puppet mode=0755
dir path=var/log/puppet owner=puppet group=puppet mode=0755
file path=etc/puppet/auth.conf owner=puppet group=bin mode=0444
file path=etc/puppetlabs/puppet/auth.conf owner=puppet group=bin mode=0444

This comment has been minimized.

Copy link
@pyhalov

pyhalov Oct 16, 2017

Contributor

mode=0644 preseve=true?
The same - for other etc/puppetlabs/*.conf files....

This comment has been minimized.

Copy link
@Toasterson

Toasterson Oct 17, 2017

Author Contributor

Ah yep I have added that in the latest revision. I thought we had a general transform for etc.

@pyhalov pyhalov added the needs_work label Oct 25, 2017
@Toasterson
Copy link
Contributor Author

Toasterson commented Jan 18, 2018

Hey All I have Puppet 5.2 now in production use at $Work from this branch and it works very well. Do you want to merge this now or is there still missing stuff?

@pyhalov
Copy link
Contributor

pyhalov commented Jan 18, 2018

@Toasterson I'll take a look in several days. Ping me if I forget :)

@pyhalov
Copy link
Contributor

pyhalov commented Jan 24, 2018

What are we going to do with puppetserver?

@Toasterson
Copy link
Contributor Author

Toasterson commented Jan 24, 2018

This Version of Puppet master works. If we also want to package puppetserver it would be a seperate component I would say.

@pyhalov
Copy link
Contributor

pyhalov commented Jan 26, 2018

For me "puppet master --no-daemonize" exits with
Notice: Starting Puppet master version 5.2.0
svcadm: Instance "svc:/application/puppet:master" is not online.
Error: Could not run: getaddrinfo: node name or service name not known

From tcpdump I see that it tries to resolve *.my.domain.name....

@Toasterson
Copy link
Contributor Author

Toasterson commented Jan 26, 2018

Yes that is intentional. Both *.mydomain.com and puppet.mydomain.com must exist and point to the puppetmaster. Alternatively you can add a directive to puppet.conf to force a hostname. I don't remember the directive off hand but I think it was hostname in the [master] or [main] section

@Toasterson
Copy link
Contributor Author

Toasterson commented Mar 5, 2018

Bump. Is there any work still required for this?

@Toasterson
Copy link
Contributor Author

Toasterson commented Oct 8, 2018

@pyhalov Any more comments on this?

@pyhalov
Copy link
Contributor

pyhalov commented Oct 9, 2018

Yes. We should provide puppet master, which will start and run on svcadm enable puppet:master. We are still not here, server dies with

 Could not run: getaddrinfo: node name or service name not known
@pyhalov
Copy link
Contributor

pyhalov commented Oct 9, 2018

There's nothing about '*' resolution in https://puppet.com/docs/puppet/5.2/install_pre.html

@Toasterson
Copy link
Contributor Author

Toasterson commented Oct 9, 2018

Well Point 4. It was always in the Best Practices. Might be that it changed to only require puppet.mydomain.com which makes sense. But I could check if I can add a section under master to force hostname to be 127.0.0.1

@pyhalov
Copy link
Contributor

pyhalov commented Oct 9, 2018

The issue is not that it searches for 'puppet.my.domain', but that it searches for '*.my.domain', which is really strange.

@Toasterson
Copy link
Contributor Author

Toasterson commented Oct 9, 2018

As far as i remember *.mydomain.com is a fallback if it does not find a listening Puppet master under puppet.mydomain.com have you tried adding puppet as an alias to 127.0.0.1 to your hosts file? I can check this evening once i am back ad my build computer.

@stale
Copy link

stale bot commented Aug 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 19, 2019
@stale stale bot closed this Aug 26, 2019
@Toasterson Toasterson deleted the Toasterson:puppet-410 branch Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.