Closed khorsmann closed 10 years ago
I use puppet 2.7.22 on Centos 6.5 with forman and ENC parameterized Classes. So i try to capsulate radez-pacemaker in my own puppet class.
But i got this error:
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type pacemaker::resource::ip at
I plan to use create_resource function, to use more than one floating_ip. But that is an other story.
My class looks like this:
# class myown_pacemaker (cluster_ip1, cluster_ip2, float_ips_hash) { include pacemaker Class['pacemaker::corosync'] -> Class['pacemaker::stonith'] class { pacemaker::corosync: cluster_name => "fs_cluster", cluster_members => "$cluster_ip1 $cluster_ip2", } class { pacemaker::stonith: disable => true, } pacemaker::resource::ip { "172.20.120.78": ip_address => "172.20.120.78", cidr_netmask => "24", group => "my_group", nic => "bond0:0", } }```
Okay, works with latest-master. Before i tried radez-pacemaker-0.1.0.tar.gz from puppet-labs forge.
I use puppet 2.7.22 on Centos 6.5 with forman and ENC parameterized Classes. So i try to capsulate radez-pacemaker in my own puppet class.
But i got this error:
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type pacemaker::resource::ip at
I plan to use create_resource function, to use more than one floating_ip. But that is an other story.
My class looks like this: