biemond-orawls icon indicating copy to clipboard operation
biemond-orawls copied to clipboard

is restarting a managed server possbile with refreshonly and subscribe ?

Open cbrdy opened this issue 7 years ago • 3 comments

I'm trying to restart managed server due to jdbc changes. I have added refreshonly and subscribe to server_instances in hiera but puppet is not restarting the managed server for me.

In other words, can I restart the servers listed in "Server Restart Checklist" at the end of a puppet run ?

image

cbrdy avatar Jul 10 '17 15:07 cbrdy

it should work, standard orawls behaviour.

if there is a change , subscribe to this change.

see https://github.com/biemond/biemond-orawls-vagrant-12.2.1-puppet4/blob/master/puppet/hieradata/admin.example.com.yaml#L263

https://github.com/biemond/biemond-orawls-vagrant-12.2.1-puppet4/blob/master/puppet/environments/development/manifests/site.pp#L280

biemond avatar Jul 10 '17 15:07 biemond

I get this error when I run puppet.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: no parameter named 'refreshonly' on Wls_server[server_1] on node centos.mycorp
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

cbrdy avatar Jul 10 '17 16:07 cbrdy

Oh yeah, I was thinking about adminserver

I never do this on managed servera because it is not so important for provisioning, they are down or no need to start them until the end of provisioning. so no conflict or they are on different vm's so that won't work with subscribe.

biemond avatar Jul 10 '17 16:07 biemond