Minio Module - add access key variables

This commit is contained in:
Mike Reeves
2018-04-25 15:19:52 -04:00
parent 167852f568
commit db5bf8d3dc

View File

@@ -13,6 +13,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
{% set access_key = salt['pillar.get']('master:access_key', '') %}
{% set access_secret = salt['pillar.get']('master:access_secret', '') %}
# Minio Setup # Minio Setup
minioconfdir: minioconfdir:
file.directory: file.directory:
@@ -46,6 +49,9 @@ minio:
- user: socore - user: socore
- port_bindings: - port_bindings:
- 0.0.0.0:9000:9000 - 0.0.0.0:9000:9000
- environment:
- MINIO_ACCESS_KEY: {{ access_key }}
- MINIO_SECRET_KEY: {{ access_secret }}
- binds: - binds:
- /nsm/minio/data:/data:rw - /nsm/minio/data:/data:rw
- /opt/so/conf/minio/etc:/root/.minio:rw - /opt/so/conf/minio/etc:/root/.minio:rw