diff options
author | James Shubin <james@shubin.ca> | 2012-08-23 16:00:33 -0400 |
---|---|---|
committer | James Shubin <james@shubin.ca> | 2012-08-23 16:00:33 -0400 |
commit | f9aaa75e45140f5f6692b371066a009b037fedef (patch) | |
tree | 9b679a18f75e7dd80c8f66ac8776c2e782be83cd /examples | |
parent | f4dd75604f81cb11d9e85ea41f881bd578d7a5ca (diff) | |
download | puppet-gluster-f9aaa75e45140f5f6692b371066a009b037fedef.tar.gz puppet-gluster-f9aaa75e45140f5f6692b371066a009b037fedef.tar.xz puppet-gluster-f9aaa75e45140f5f6692b371066a009b037fedef.zip |
Cleaned up examples and added ::client.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/client-example.pp | 21 | ||||
-rw-r--r-- | examples/distributed-replicate-example.pp (renamed from examples/distributed-replicate.pp) | 0 |
2 files changed, 21 insertions, 0 deletions
diff --git a/examples/client-example.pp b/examples/client-example.pp new file mode 100644 index 0000000..2e3c8d8 --- /dev/null +++ b/examples/client-example.pp @@ -0,0 +1,21 @@ +# gluster::client example +# This is the recommended way of mounting puppet-gluster. +# NOTE: It makes sense to use the VIP as the server to mount from, since it +# stays HA if one of the other nodes goes down. + +# mount a share on one of the gluster hosts (note the added require) +$annex_loc_vip_1 = '172.16.1.80' +gluster::client { '/mnt/gshared': + server => "${annex_loc_vip_1}:/gshared", + rw => true, + mounted => true, + require => Gluster::Volume['gshared'], # TODO: too bad this can't ensure it's started +} + +# mount a share on a client somewhere +gluster::client { '/mnt/some_mount_point': + server => "${annex_loc_vip_1}:/some_volume_name", + rw => true, + mounted => true, +} + diff --git a/examples/distributed-replicate.pp b/examples/distributed-replicate-example.pp index cb73db9..cb73db9 100644 --- a/examples/distributed-replicate.pp +++ b/examples/distributed-replicate-example.pp |