OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 1 | ===== |
| 2 | Usage |
| 3 | ===== |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 4 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 5 | Installs and configures GlusterFS server and client. |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 6 | |
| 7 | Available states |
| 8 | ================ |
| 9 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 10 | * ``glusterfs.server`` |
| 11 | Sets up GlusterFS server (including both service and setup) |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 12 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 13 | * ``glusterfs.server.service`` |
| 14 | Sets up and start GlusterFS server service |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 15 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 16 | * ``glusterfs.server.setup`` |
| 17 | Sets up GlusterFS peers and volumes |
Filip Pytloun | 888c3db | 2015-09-07 13:45:09 +0200 | [diff] [blame] | 18 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 19 | * ``glusterfs.client`` |
| 20 | Sets up GlusterFS client |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 21 | |
| 22 | Available metadata |
| 23 | ================== |
| 24 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 25 | * ``metadata.glusterfs.server`` |
| 26 | Sets up basic server |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 27 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 28 | * ``metadata.glusterfs.client`` |
| 29 | Sets up client only |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 30 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 31 | Example Reclass |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 32 | =============== |
| 33 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 34 | Example for distributed Glance images storage where every control node is |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 35 | gluster 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 Pytloun | 7dfd5d4 | 2015-07-30 16:08:27 +0200 | [diff] [blame] | 62 | 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 Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 68 | client: |
| 69 | volumes: |
| 70 | glance: |
| 71 | path: /var/lib/glance/images |
| 72 | server: ${_param:cluster_node01_address} |
| 73 | user: glance |
| 74 | group: glance |
| 75 | |
| 76 | Example pillar |
| 77 | ============== |
| 78 | |
| 79 | Server |
| 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 Radulescu | 3f27ebd | 2015-12-04 16:55:42 +0000 | [diff] [blame] | 98 | enabled: true |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 99 | |
Martin Polreich | b3e1f56 | 2018-06-01 13:36:55 +0200 | [diff] [blame] | 100 | Server 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 Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 113 | Client |
| 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 Radulescu | 3f27ebd | 2015-12-04 16:55:42 +0000 | [diff] [blame] | 126 | enabled: true |
Filip Pytloun | 6828ea5 | 2015-07-30 14:47:24 +0200 | [diff] [blame] | 127 | |
| 128 | Read more |
| 129 | ========= |
| 130 | |
| 131 | * https://www.gluster.org/ |
Filip Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 132 | |
| 133 | Documentation and Bugs |
| 134 | ====================== |
| 135 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 136 | * http://salt-formulas.readthedocs.io/ |
| 137 | Learn how to install and update salt-formulas |
Filip Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 138 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 139 | * 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 Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 143 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 144 | * 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 Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 147 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 148 | * https://launchpad.net/~salt-formulas-users |
| 149 | Join the salt-formulas-users team and subscribe to mailing list if required |
Filip Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 150 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 151 | * 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 Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 154 | |
OlgaGusarenko | a67b5c3 | 2018-07-30 17:58:11 +0300 | [diff] [blame^] | 155 | * #salt-formulas @ irc.freenode.net |
| 156 | Use this IRC channel in case of any questions or feedback which is always |
| 157 | welcome |
Filip Pytloun | 251a2dd | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 158 | |