Skip to content

Instantly share code, notes, and snippets.

@regner
Created July 26, 2023 08:40
Show Gist options
  • Save regner/5d75226379a344389eafec9687a4ba4d to your computer and use it in GitHub Desktop.
Save regner/5d75226379a344389eafec9687a4ba4d to your computer and use it in GitHub Desktop.
UnrealCloudDDC
---
- 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"
---
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