homeserver/roles/mgrote_minio_configure/defaults/main.yml

112 lines
2.6 KiB
YAML
Raw Normal View History

2024-11-09 10:06:25 +01:00
---
2024-11-09 10:13:33 +01:00
minio_root_access_key:
minio_root_secret_key:
minio_root_alias: minio_ansible_root
minio_url: https://s3.mgrote.net
2024-11-09 10:34:29 +01:00
minio_config_dir: /etc/minio
2024-11-09 10:53:27 +01:00
minio_client_release: ""
2024-11-09 10:53:51 +01:00
minio_client_bin: /usr/local/bin/mc
2024-11-09 11:21:53 +01:00
minio_print_keys: true # zeige secret in playbook
2024-11-09 10:16:52 +01:00
# --dp ausschreiben
minio_users:
- name: testuser5
secret: hallowelt
2024-11-09 18:49:50 +01:00
state: present
2024-11-09 10:38:50 +01:00
policies:
- testbucket1_rw
2024-11-09 10:16:52 +01:00
- name: testuser6
secret: hallowelt2
2024-11-09 18:49:50 +01:00
state: present
2024-11-09 10:38:50 +01:00
policies:
- testbucket3_ro
2024-11-09 10:34:23 +01:00
minio_buckets:
- name: testbucket1
- name: testbucket3
minio_policies:
- name: testbucket1_rw
policy: |
{
2024-11-09 10:51:52 +01:00
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListBucketMultipartUploads"
],
"Resource": [
"arn:aws:s3:::testbucket1"
2024-11-09 10:50:42 +01:00
]
},
2024-11-09 10:51:52 +01:00
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListMultipartUploadParts",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::testbucket1/*"
2024-11-09 10:50:42 +01:00
]
2024-11-09 10:51:52 +01:00
}
]
}
2024-11-09 10:38:50 +01:00
- name: testbucket3_ro
2024-11-09 10:34:23 +01:00
policy: |
{
2024-11-09 10:51:52 +01:00
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListBucketMultipartUploads"
],
"Resource": [
"arn:aws:s3:::testbucket3"
2024-11-09 10:50:42 +01:00
]
},
2024-11-09 10:51:52 +01:00
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListMultipartUploadParts",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::testbucket3/*"
2024-11-09 10:50:42 +01:00
]
2024-11-09 10:51:52 +01:00
}
]
}