blob: 69a3e7faaab4d1525fe94b010f8a9d20043eb39d [file] [log] [blame]
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +03001=====
2Usage
3=====
Filip Pytloun6828ea52015-07-30 14:47:24 +02004
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +03005Installs and configures GlusterFS server and client.
Filip Pytloun6828ea52015-07-30 14:47:24 +02006
7Available states
8================
9
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030010* ``glusterfs.server``
11 Sets up GlusterFS server (including both service and setup)
Filip Pytloun6828ea52015-07-30 14:47:24 +020012
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030013* ``glusterfs.server.service``
14 Sets up and start GlusterFS server service
Filip Pytloun6828ea52015-07-30 14:47:24 +020015
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030016* ``glusterfs.server.setup``
17 Sets up GlusterFS peers and volumes
Filip Pytloun888c3db2015-09-07 13:45:09 +020018
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030019* ``glusterfs.client``
20 Sets up GlusterFS client
Filip Pytloun6828ea52015-07-30 14:47:24 +020021
22Available metadata
23==================
24
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030025* ``metadata.glusterfs.server``
26 Sets up basic server
Filip Pytloun6828ea52015-07-30 14:47:24 +020027
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030028* ``metadata.glusterfs.client``
29 Sets up client only
Filip Pytloun6828ea52015-07-30 14:47:24 +020030
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030031Example Reclass
Filip Pytloun6828ea52015-07-30 14:47:24 +020032===============
33
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +030034Example for distributed Glance images storage where every control node is
Filip Pytloun6828ea52015-07-30 14:47:24 +020035gluster peer.
36
37.. code-block:: yaml
38
39 classes:
40 - service.glusterfs.server
41 - service.glusterfs.client
42
43 _param:
44 cluster_node01_address: 192.168.1.21
45 cluster_node02_address: 192.168.1.22
46 cluster_node03_address: 192.168.1.23
47 parameters:
48 glusterfs:
49 server:
50 peers:
51 - ${_param:cluster_node01_address}
52 - ${_param:cluster_node02_address}
53 - ${_param:cluster_node03_address}
54 volumes:
55 glance:
56 storage: /srv/glusterfs/glance
57 replica: 3
58 bricks:
59 - ${_param:cluster_node01_address}:/srv/glusterfs/glance
60 - ${_param:cluster_node02_address}:/srv/glusterfs/glance
61 - ${_param:cluster_node03_address}:/srv/glusterfs/glance
Filip Pytloun7dfd5d42015-07-30 16:08:27 +020062 options:
63 cluster.readdir-optimize: On
64 nfs.disable: On
65 network.remote-dio: On
66 diagnostics.client-log-level: WARNING
67 diagnostics.brick-log-level: WARNING
Filip Pytloun6828ea52015-07-30 14:47:24 +020068 client:
69 volumes:
70 glance:
71 path: /var/lib/glance/images
72 server: ${_param:cluster_node01_address}
73 user: glance
74 group: glance
75
76Example pillar
77==============
78
79Server
80------
81
82.. code-block:: yaml
83
84 glusterfs:
85 server:
86 peers:
87 - 192.168.1.21
88 - 192.168.1.22
89 - 192.168.1.23
90 volumes:
91 glance:
92 storage: /srv/glusterfs/glance
93 replica: 3
94 bricks:
95 - 172.168.1.21:/srv/glusterfs/glance
96 - 172.168.1.21:/srv/glusterfs/glance
97 - 172.168.1.21:/srv/glusterfs/glance
Bogdan Radulescu3f27ebd2015-12-04 16:55:42 +000098 enabled: true
Filip Pytloun6828ea52015-07-30 14:47:24 +020099
Martin Polreichb3e1f562018-06-01 13:36:55 +0200100Server with forced peer UUID (for peer recovery)
101------------------------------------------------
102
103.. code-block:: yaml
104
105 glusterfs:
106 server:
107 recover_peers:
108 kvm03.testserver.local:
109 enabled: true
110 uuid: ab6ac060-68f1-4f0b-8de4-70241dfb2279
111
112
Filip Pytloun6828ea52015-07-30 14:47:24 +0200113Client
114------
115
116.. code-block:: yaml
117
118 glusterfs:
119 client:
120 volumes:
121 glance:
122 path: /var/lib/glance/images
123 server: 192.168.1.21
124 user: glance
125 group: glance
Bogdan Radulescu3f27ebd2015-12-04 16:55:42 +0000126 enabled: true
Filip Pytloun6828ea52015-07-30 14:47:24 +0200127
128Read more
129=========
130
131* https://www.gluster.org/
Filip Pytloun251a2dd2017-02-02 13:02:03 +0100132
133Documentation and Bugs
134======================
135
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +0300136* http://salt-formulas.readthedocs.io/
137 Learn how to install and update salt-formulas
Filip Pytloun251a2dd2017-02-02 13:02:03 +0100138
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +0300139* https://github.com/salt-formulas/salt-formula-glusterfs/issues
140 In the unfortunate event that bugs are discovered, report the issue to the
141 appropriate issue tracker. Use the Github issue tracker for a specific salt
142 formula
Filip Pytloun251a2dd2017-02-02 13:02:03 +0100143
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +0300144* https://launchpad.net/salt-formulas
145 For feature requests, bug reports, or blueprints affecting the entire
146 ecosystem, use the Launchpad salt-formulas project
Filip Pytloun251a2dd2017-02-02 13:02:03 +0100147
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +0300148* https://launchpad.net/~salt-formulas-users
149 Join the salt-formulas-users team and subscribe to mailing list if required
Filip Pytloun251a2dd2017-02-02 13:02:03 +0100150
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +0300151* https://github.com/salt-formulas/salt-formula-glusterfs
152 Develop the salt-formulas projects in the master branch and then submit pull
153 requests against a specific formula
Filip Pytloun251a2dd2017-02-02 13:02:03 +0100154
OlgaGusarenkoa67b5c32018-07-30 17:58:11 +0300155* #salt-formulas @ irc.freenode.net
156 Use this IRC channel in case of any questions or feedback which is always
157 welcome
Filip Pytloun251a2dd2017-02-02 13:02:03 +0100158