Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 1 | ========= |
| 2 | GlusterFS |
| 3 | ========= |
| 4 | |
| 5 | Install and configure GlusterFS server and client. |
| 6 | |
| 7 | Available states |
| 8 | ================ |
| 9 | |
| 10 | .. contents:: |
| 11 | :local: |
| 12 | |
| 13 | ``glusterfs.server`` |
| 14 | -------------------- |
| 15 | |
Filip Pytloun | 888c3db | 2015-09-07 13:45:09 +0200 | [diff] [blame] | 16 | Setup GlusterFS server (including both service and setup) |
| 17 | |
| 18 | ``glusterfs.server.service`` |
| 19 | ---------------------------- |
| 20 | |
| 21 | Setup and start GlusterFS server service |
| 22 | |
| 23 | ``glusterfs.server.setup`` |
| 24 | ---------------------------- |
| 25 | |
| 26 | Setup GlusterFS peers and volumes |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 27 | |
| 28 | ``glusterfs.client`` |
| 29 | -------------------- |
| 30 | |
| 31 | Setup GlusterFS client |
| 32 | |
| 33 | Available metadata |
| 34 | ================== |
| 35 | |
| 36 | .. contents:: |
| 37 | :local: |
| 38 | |
| 39 | ``metadata.glusterfs.server`` |
| 40 | ----------------------------- |
| 41 | |
| 42 | Setup basic server |
| 43 | |
| 44 | |
| 45 | ``metadata.glusterfs.client`` |
| 46 | ----------------------------- |
| 47 | |
| 48 | Setup client only |
| 49 | |
| 50 | Configuration parameters |
| 51 | ======================== |
| 52 | |
| 53 | |
| 54 | Example reclass |
| 55 | =============== |
| 56 | |
| 57 | Example for distributed glance images storage where every control node is |
| 58 | gluster peer. |
| 59 | |
| 60 | .. code-block:: yaml |
| 61 | |
| 62 | classes: |
| 63 | - service.glusterfs.server |
| 64 | - service.glusterfs.client |
| 65 | |
| 66 | _param: |
| 67 | cluster_node01_address: 192.168.1.21 |
| 68 | cluster_node02_address: 192.168.1.22 |
| 69 | cluster_node03_address: 192.168.1.23 |
| 70 | parameters: |
| 71 | glusterfs: |
| 72 | server: |
| 73 | peers: |
| 74 | - ${_param:cluster_node01_address} |
| 75 | - ${_param:cluster_node02_address} |
| 76 | - ${_param:cluster_node03_address} |
| 77 | volumes: |
| 78 | glance: |
| 79 | storage: /srv/glusterfs/glance |
| 80 | replica: 3 |
| 81 | bricks: |
| 82 | - ${_param:cluster_node01_address}:/srv/glusterfs/glance |
| 83 | - ${_param:cluster_node02_address}:/srv/glusterfs/glance |
| 84 | - ${_param:cluster_node03_address}:/srv/glusterfs/glance |
Filip Pytloun | 7dfd5d4 | 2015-07-30 16:08:27 +0200 | [diff] [blame] | 85 | options: |
| 86 | cluster.readdir-optimize: On |
| 87 | nfs.disable: On |
| 88 | network.remote-dio: On |
| 89 | diagnostics.client-log-level: WARNING |
| 90 | diagnostics.brick-log-level: WARNING |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 91 | client: |
| 92 | volumes: |
| 93 | glance: |
| 94 | path: /var/lib/glance/images |
| 95 | server: ${_param:cluster_node01_address} |
| 96 | user: glance |
| 97 | group: glance |
| 98 | |
| 99 | Example pillar |
| 100 | ============== |
| 101 | |
| 102 | Server |
| 103 | ------ |
| 104 | |
| 105 | .. code-block:: yaml |
| 106 | |
| 107 | glusterfs: |
| 108 | server: |
| 109 | peers: |
| 110 | - 192.168.1.21 |
| 111 | - 192.168.1.22 |
| 112 | - 192.168.1.23 |
| 113 | volumes: |
| 114 | glance: |
| 115 | storage: /srv/glusterfs/glance |
| 116 | replica: 3 |
| 117 | bricks: |
| 118 | - 172.168.1.21:/srv/glusterfs/glance |
| 119 | - 172.168.1.21:/srv/glusterfs/glance |
| 120 | - 172.168.1.21:/srv/glusterfs/glance |
Bogdan Radulescu | 3f27ebd | 2015-12-04 16:55:42 +0000 | [diff] [blame] | 121 | enabled: true |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 122 | |
| 123 | Client |
| 124 | ------ |
| 125 | |
| 126 | .. code-block:: yaml |
| 127 | |
| 128 | glusterfs: |
| 129 | client: |
| 130 | volumes: |
| 131 | glance: |
| 132 | path: /var/lib/glance/images |
| 133 | server: 192.168.1.21 |
| 134 | user: glance |
| 135 | group: glance |
Bogdan Radulescu | 3f27ebd | 2015-12-04 16:55:42 +0000 | [diff] [blame] | 136 | enabled: true |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 137 | |
| 138 | Read more |
| 139 | ========= |
| 140 | |
| 141 | * https://www.gluster.org/ |
Filip Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame^] | 142 | |
| 143 | Documentation and Bugs |
| 144 | ====================== |
| 145 | |
| 146 | To learn how to install and update salt-formulas, consult the documentation |
| 147 | available online at: |
| 148 | |
| 149 | http://salt-formulas.readthedocs.io/ |
| 150 | |
| 151 | In the unfortunate event that bugs are discovered, they should be reported to |
| 152 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 153 | formula: |
| 154 | |
| 155 | https://github.com/salt-formulas/salt-formula-glusterfs/issues |
| 156 | |
| 157 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 158 | use Launchpad salt-formulas project: |
| 159 | |
| 160 | https://launchpad.net/salt-formulas |
| 161 | |
| 162 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 163 | |
| 164 | https://launchpad.net/~salt-formulas-users |
| 165 | |
| 166 | Developers wishing to work on the salt-formulas projects should always base |
| 167 | their work on master branch and submit pull request against specific formula. |
| 168 | |
| 169 | https://github.com/salt-formulas/salt-formula-glusterfs |
| 170 | |
| 171 | Any questions or feedback is always welcome so feel free to join our IRC |
| 172 | channel: |
| 173 | |
| 174 | #salt-formulas @ irc.freenode.net |