summaryrefslogtreecommitdiffstats
path: root/examples/client-example.pp
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-01-21 05:02:58 -0500
committerJames Shubin <james@shubin.ca>2014-01-21 10:46:34 -0500
commit51fea724f4b606326489636a0ffb7e9673600f9b (patch)
tree5d9fc128b49fc08316b72416c6b36fc7d8e9ab98 /examples/client-example.pp
parentbee4993d4304730da27424dbdc73819b99d8ab5b (diff)
downloadpuppet-gluster-51fea724f4b606326489636a0ffb7e9673600f9b.tar.gz
puppet-gluster-51fea724f4b606326489636a0ffb7e9673600f9b.tar.xz
puppet-gluster-51fea724f4b606326489636a0ffb7e9673600f9b.zip
Add client mounting and associated magic.
* Rename gluster::client to gluster::mount * Add support to gluster::mount * Add client machines and mounts to vagrant setup * Fixed version interface for gluster::mount and gluster::server * Improved firewall support for gluster::mount * Update examples to use gluster::mount instead of gluster::client * Update documentation * Other small fixes
Diffstat (limited to 'examples/client-example.pp')
-rw-r--r--examples/client-example.pp21
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/client-example.pp b/examples/client-example.pp
deleted file mode 100644
index 2e3c8d8..0000000
--- a/examples/client-example.pp
+++ /dev/null
@@ -1,21 +0,0 @@
-# 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,
-}
-