puppet-tripleo/lib/puppet/functions
Michele Baldessari 8e6e49d28d Add ability to noop a service
We want also be able to noop_resource('service'). In order to do that we
also add stubs for status, start and stop. Without this it fails with:
[root@controller-0 openstack-puppet]# NET_HOST=true DEBUG=True PROCESS_COUNT=1 CONFIG=/root/bandini.json python3 /var/lib/container-puppet/container-puppet.py 2>&1 | tee /tmp/puppet.log |grep Error:
<13>Oct  4 10:28:26 puppet-user: Error: /Service[rsyncd]: Could not evaluate: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct  4 10:28:26 puppet-user: Error: /Service[rsyncd]: Failed to call refresh: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct  4 10:28:26 puppet-user: Error: /Service[rsyncd]: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct  4 10:28:26 puppet-user: Error: /Service[rsyncd]: Could not evaluate: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct  4 10:28:26 puppet-user: Error: /Service[rsyncd]: Failed to call refresh: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct  4 10:28:26 puppet-user: Error: /Service[rsyncd]: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
[root@controller-0 openstack-puppet]# NET_HOST=true DEBUG=True PROCESS_COUNT=1 CONFIG=/root/bandini.json python3 /var/lib/container-puppet/container-puppet.py 2>&1 | tee /tmp/puppet.log |grep Error:
<13>Oct  4 10:29:03 puppet-user: Error: Could not set 'running' on ensure: undefined method `start' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct  4 10:29:03 puppet-user: Error: Could not set 'running' on ensure: undefined method `start' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop

Related-Bug: #1945962

Change-Id: I9ee8108fe749e787b82f8f4c226f44685ab21a99
2021-10-04 16:18:07 +02:00
..
docker_volumes_to_storage_maps.rb Update parser functions to 4.x api 2018-10-29 14:26:54 +00:00
extract_id.rb Update parser functions to 4.x api 2018-10-29 14:26:54 +00:00
ip_to_erl_format.rb Update functions to fix unit tests 2018-10-29 12:16:38 +01:00
list_to_hash.rb Update parser functions to 4.x api 2018-10-29 14:26:54 +00:00
merge_hash_values.rb haproxy: frontend/backend syntax in config 2021-08-25 17:45:07 +02:00
mysql_ed25519_password.rb Use a python shim for running for auth_ed25519 helper 2020-04-14 15:48:08 +02:00
netmask_to_cidr.rb Update functions to fix unit tests 2018-10-29 12:16:38 +01:00
noop_resource.rb Add ability to noop a service 2021-10-04 16:18:07 +02:00
pacemaker_bundle_replicas.rb Trim line breaks from pacemaker bundle function 2021-07-13 10:00:33 -06:00
qdr_ssl_certificate.rb Create SSL certificates from sslProfiles 2021-06-22 12:41:14 +02:00
tripleo_swift_devices.rb Update parser functions to 4.x api 2018-10-29 14:26:54 +00:00