HA: update bundle creation to be compatible with newest pcs
The latest version of pcs [1] makes it mandatory to specify the container type when creating a pacemaker bundle resource. Update the resource creation statement accordingly. This change is backward compatible with the pcs version in RDO, because the pcs argument already exists in this version, it is just optional. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1447910 Change-Id: I2b3b7a75bee38c19742aebe28fd3b04567fd73e9
This commit is contained in:
@@ -23,7 +23,7 @@ Puppet::Type.type(:pcmk_bundle).provide(:default) do
|
||||
Puppet.debug("Bundle create: resource exists #{did_resource_exist} location exists #{did_location_exist}")
|
||||
|
||||
# Build the 'pcs resource create' command. Check out the pcs man page :-)
|
||||
cmd = 'resource bundle create ' + @resource[:name]+' container image=' + @resource[:image]
|
||||
cmd = 'resource bundle create ' + @resource[:name]+' container docker image=' + @resource[:image]
|
||||
if replicas
|
||||
cmd += " replicas=#{replicas}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user