homeserver/roles/mgrote_minio_configure/defaults/main.yml

105 lines
2.1 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:16:52 +01:00
# --dp ausschreiben
minio_users:
- name: testuser5
secret: hallowelt
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 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: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListBucketMultipartUploads"
],
"Resource": [
"arn:aws:s3:::testbucket1"
]
},
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListMultipartUploadParts",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::testbucket1/*"
]
}
]
}
2024-11-09 10:38:50 +01:00
- name: testbucket3_ro
2024-11-09 10:34:23 +01:00
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListBucketMultipartUploads"
],
"Resource": [
"arn:aws:s3:::testbucket3"
]
},
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:AbortMultipartUpload",
"s3:GetObject",
"s3:ListMultipartUploadParts",
],
"Resource": [
"arn:aws:s3:::testbucket3/*"
]
}
]
}