I'm trying to configure pacemaker with a config file (that I can automatically generate and then ask pacemaker to "reload"). But all the examples that I see are for command-line commands or the interactive editor. (I'm running Ubuntu).
The command-line approach is something like this:
crm configure primitive VIP ocf:IPaddr2 params ip=10.0.2.200 nic=eth0 op monitor interval=10s
While the interactive mode is something like this:
sudo crm configure
And then we add the res_ip resource:
crm(live)configure# primitive res_ip ocf:heartbeat:IPaddr2 params ip="102.169.122.254" cidr_netmask="24" nic="eth0"
crm(live)configure# commit
crm(live)configure# exit
But I want a static config file that I can update and reload. Something like the /etc/ha.d/haresources
file that heartbeat uses. Is that a possibility?