forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pacemaker to 01bc4942485abc3a8f46b055c8c8418ca9d81d9e
01bc4942485abc3a8f46b055c8c8418ca9d81d9e moved to https://github.com/redhat-openstack/puppet-pacemaker 52acfd9c31e0801cedf970929851d4bece5cf79b Merge pull request redhat-openstack#33 from disconn3ct/master 2bd18523965c1b721837141b64f2aa7f31e3a99c Merge pull request redhat-openstack#38 from RedHatEMEA/master f570bca0b1dec88ef2aa0c0b1a6ec369e174df48 Merge pull request redhat-openstack#39 from cwolferh/constraint_exec_retry d03ff98b31b9c7d6d214f72b8099b25677cdf09a add retry capability for pacemaker::constraint::base c64dc8a8492981a0ff3a9d8b2f597bafa5be34a6 Remove inheritance from pacemaker::stonith of pacemaker::corosync e8c50396fe3dbc6f03d5a6bde4366036d437852d Merge pull request redhat-openstack#37 from jistr/fence_agents_generation 1e052ddf4b1b47d3518e58e371a5de10aa68f60a XML sources and generated agent manifests 6757daf0c0df76c508ffb79b423e82c138d564f0 Agent manifest batch generation scripts 101168917ec7d5c80e9aee5fcd86dd420ae9c5c8 Generator of fence agent manifests 56bbb3580bb7fa62bf57c2ed7a30b938e42b8cc3 Merge pull request redhat-openstack#35 from enovance/proper_password 1e94dc23a162cabbadb9e98d1c4fc48c75f8b39c pacemaker/corosync: Parametrize timeout values 5d91343c80f65b64be604f4a61558ff408c0f863 pacemaker/corosync: Grab correct hacluster password 55706c118b197b3f2c29035690ba85e644e0339a Fix route resource ID
- Loading branch information
Showing
30 changed files
with
3 additions
and
1,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,4 @@ | ||
# Pacemaker module for puppet | ||
|
||
This module manages pacemaker on Linux distros with the pcs tool. | ||
|
||
## License | ||
Apache 2.0 | ||
|
||
## Support & Contact | ||
Please log tickets and issues at https://github.com/radez/puppet-pacemaker | ||
|
||
## Description | ||
|
||
This module uses the fact osfamily which is supported by Facter 1.6.1+. If you do not have facter 1.6.1 in your environment, the following manifests will provide the same functionality in site.pp (before declaring any node): | ||
|
||
if ! $::osfamily { | ||
case $::operatingsystem { | ||
'RedHat', 'Fedora', 'CentOS', 'Scientific', 'SLC', 'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS', 'OEL': { | ||
$osfamily = 'RedHat' | ||
} | ||
'ubuntu', 'debian': { | ||
$osfamily = 'Debian' | ||
} | ||
'SLES', 'SLED', 'OpenSuSE', 'SuSE': { | ||
$osfamily = 'Suse' | ||
} | ||
'Solaris', 'Nexenta': { | ||
$osfamily = 'Solaris' | ||
} | ||
default: { | ||
$osfamily = $::operatingsystem | ||
} | ||
} | ||
} | ||
|
||
This module is based on work by Dan Radez | ||
|
||
## Usage | ||
|
||
### pacemaker | ||
Installs Pacemaker and corosync and creates a cluster | ||
|
||
class {"pacemaker::corosync": | ||
cluster_name => "cluster_name", | ||
cluster_members => "192.168.122.3 192.168.122.7", | ||
} | ||
|
||
The pacemaker::corosync resource must be executed on each node | ||
|
||
### Disable stonith | ||
class {"pacemaker::stonith": | ||
disable => true, | ||
} | ||
|
||
### Add a stonith device | ||
class {"pacemaker::stonith::ipmilan": | ||
address => "10.10.10.100", | ||
user => "admin", | ||
password => "admin", | ||
} | ||
|
||
### Resources | ||
Any of the following resources support a group propery. | ||
This will create the group, if the group doesn't exist, | ||
and add the resource to the group. This has been demonstrated | ||
on the ip address example, but is not a required propery. | ||
|
||
#### Add a floating ip | ||
pacemaker::resource::ip { "192.168.122.223": | ||
ip_address => "192.168.122.223", | ||
group => "my_group", | ||
} | ||
|
||
#### Manage a Linux Standard Build service | ||
#### That will get created after the floating ip | ||
pacemaker::resource::lsb { "http": | ||
require => Pacemaker::Resource::Ip['192.168.122.223'], | ||
} | ||
|
||
#### Manage a MySQL server | ||
pacemaker::resource::mysql { "da-database": } | ||
|
||
#### Manage a shared filesystem | ||
pacemaker::resource::filesystem { "apache share": | ||
device => "192.168.122.1:/var/www/html", | ||
directory => "/mnt", | ||
fstype => "nfs", | ||
} | ||
This module's home has been moved to | ||
https://github.com/redhat-openstack/puppet-pacemaker |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.