Created
July 26, 2023 08:40
-
-
Save regner/5d75226379a344389eafec9687a4ba4d to your computer and use it in GitHub Desktop.
UnrealCloudDDC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: "Create required directories" | |
ansible.builtin.file: | |
path: "{{ item }}" | |
state: "directory" | |
mode: 0777 | |
with_items: | |
- "{{ unrealcloudddc_data_dir }}/scylla" | |
- "{{ unrealcloudddc_data_dir }}/unrealcloudddc/config" | |
- "{{ unrealcloudddc_data_dir }}/unrealcloudddc/blobstore" | |
- name: "Template out appsettings.Local.yaml" | |
ansible.builtin.template: | |
src: "appsettings.Local.yaml" | |
dest: "{{ unrealcloudddc_data_dir }}/unrealcloudddc/config/appsettings.Local.yaml" | |
mode: 0744 | |
notify: | |
- "Restart unrealcloudddc container" | |
- name: "Create a Docker network" | |
community.general.docker_network: | |
name: "unrealcloudddc" | |
- name: "Create Scylla container" | |
community.general.docker_container: | |
name: "scylla" | |
image: "scylladb/scylla:5.1.10" | |
restart_policy: "always" | |
ports: | |
- "9042:9042/tcp" | |
volumes: | |
- "{{ unrealcloudddc_data_dir }}/scylla:/var/lib/scylla" | |
networks: | |
- name: "unrealcloudddc" | |
- name: "Create UnrealCloudDDC container" | |
community.general.docker_container: | |
name: "unrealcloudddc" | |
image: "{{ unrealcloudddc_image }}" | |
restart_policy: "always" | |
ports: | |
- "8080:8080/tcp" | |
volumes: | |
- "{{ unrealcloudddc_data_dir }}/unrealcloudddc/config:/config" | |
- "{{ unrealcloudddc_data_dir }}/unrealcloudddc/blobstore:/data" | |
networks: | |
- name: "unrealcloudddc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Jupiter: | |
CurrentSite: "{{ sd_unrealcloudddc_site }}" | |
Replication: | |
Enabled: false | |
UnrealCloudDDC: | |
LeaderElectionImplementation: "Static" | |
ReferencesDbImplementation: "Scylla" | |
ReplicationLogWriterImplementation: "Scylla" | |
ContentIdStoreImplementation: "Scylla" | |
BlobIndexImplementation: "Scylla" | |
EnableLastAccessTracking: true | |
StorageImplementations: | |
- "Filesystem" | |
Filesystem: | |
MaxSizeBytes: 512000000 # 512GB | |
TriggerThresholdPercentage: 0.95 | |
TargetThresholdPercentage: 0.85 | |
RootDir: "/data" | |
Scylla: | |
LocalDatacenterName: "datacenter1" | |
LocalKeyspaceSuffix: "dc1" | |
ContactPoints: | |
- "scylla" | |
GC: | |
RunFilesystemCleanup: true | |
BlobCleanupServiceEnabled: true | |
CleanOldBlobs: true | |
CleanOldRefRecords: true | |
Auth: | |
Enabled: true | |
DefaultScheme: "Bearer" | |
Schemes: | |
Bearer: | |
JwtAudience: "{{ unrealcloudddc_jwtaudiance }}" | |
JwtAuthority: "{{ unrealcloudddc_jwtauthority }}" | |
Implementation: "JWTBearer" | |
Namespaces: | |
Policies: | |
"*": | |
ACLs: | |
- Actions: | |
- "ReadObject" | |
- "WriteObject" | |
- "DeleteObject" | |
Serilog: | |
MinimumLevel: | |
Default: "Information" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment