Reorganize pleroma vars
This commit is contained in:
parent
12d09a58bd
commit
4ffae17255
@ -109,13 +109,16 @@ nextcloud:
|
|||||||
61373135303632336237333836353764646639633735323566346366623766646266
|
61373135303632336237333836353764646639633735323566346366623766646266
|
||||||
url: "nc.9iron.club"
|
url: "nc.9iron.club"
|
||||||
# Pleroma
|
# Pleroma
|
||||||
pleroma_instance_desc: owo
|
pleroma:
|
||||||
pleroma_instance_email: rehashedsalt@cock.li
|
instance:
|
||||||
pleroma_instance_name: Cowfee
|
name: Cowfee
|
||||||
pleroma_instance_notify_email: noreply@cowfee.moe
|
desc: owo
|
||||||
pleroma_openreg: "true"
|
email: rehashedsalt@cock.li
|
||||||
pleroma_static_repo: "https://git.9iron.club/salt/pleroma"
|
notify_email: noreply@cowfee.moe
|
||||||
pleroma_db_password: !vault |
|
openreg: "true"
|
||||||
|
static_repo: "https://git.9iron.club/salt/pleroma"
|
||||||
|
db:
|
||||||
|
pass: !vault |
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
34343838386134656236313462653531663839363030333630383332386535356431326436633137
|
34343838386134656236313462653531663839363030333630383332386535356431326436633137
|
||||||
3261323632653635383930333131333235373437653733300a363562666264616138623832666137
|
3261323632653635383930333131333235373437653733300a363562666264616138623832666137
|
||||||
@ -125,7 +128,8 @@ pleroma_db_password: !vault |
|
|||||||
37636162313364623933396232366239633338363539626637373163333130373665373038363566
|
37636162313364623933396232366239633338363539626637373163333130373665373038363566
|
||||||
65646633636638653335356536323334646632366164633532636634376632356166306139393766
|
65646633636638653335356536323334646632366164633532636634376632356166306139393766
|
||||||
38633934623639366263
|
38633934623639366263
|
||||||
pleroma_secret_key_base: !vault |
|
secret:
|
||||||
|
key_base: !vault |
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
36333934336635613533333137636532363937613764353933636566663031316262333837323064
|
36333934336635613533333137636532363937613764353933636566663031316262333837323064
|
||||||
6534653062626461633462636335346132353564653038330a326330326235623530393337333063
|
6534653062626461633462636335346132353564653038330a326330326235623530393337333063
|
||||||
@ -135,7 +139,7 @@ pleroma_secret_key_base: !vault |
|
|||||||
31633939353565303661626233623064653838636435376239376361663362636164653962383561
|
31633939353565303661626233623064653838636435376239376361663362636164653962383561
|
||||||
33366335623038653232613731333730363836653532363834663663343963303763323534343038
|
33366335623038653232613731333730363836653532363834663663343963303763323534343038
|
||||||
61666238346239636634
|
61666238346239636634
|
||||||
pleroma_signing_salt: !vault |
|
signing_salt: !vault |
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
31306137646362333433313630363538333234643339353530333038393061663132633161356231
|
31306137646362333433313630363538333234643339353530333038393061663132633161356231
|
||||||
3662386234633933633762363334333031306564353132380a633339323364633137396636616363
|
3662386234633933633762363334333031306564353132380a633339323364633137396636616363
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
pleroma_arch: amd64
|
pleroma_arch: amd64
|
||||||
pleroma_char_limit: 65535
|
pleroma_char_limit: 65535
|
||||||
pleroma_openreg: false
|
pleroma.openreg: false
|
||||||
pleroma_webroot: /var/www/pleroma
|
pleroma_webroot: /var/www/pleroma
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
- name: Create DB user
|
- name: Create DB user
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
name: pleroma
|
name: pleroma
|
||||||
password: "{{ pleroma_db_password }}"
|
password: "{{ pleroma.db.pass }}"
|
||||||
login_host: "{{ pleroma_db_hostname }}"
|
login_host: "{{ pleroma_db_hostname }}"
|
||||||
login_user: "{{ psql.ansible.user }}"
|
login_user: "{{ psql.ansible.user }}"
|
||||||
login_password: "{{ psql.ansible.pass }}"
|
login_password: "{{ psql.ansible.pass }}"
|
||||||
@ -153,10 +153,10 @@
|
|||||||
notify: restart pleroma
|
notify: restart pleroma
|
||||||
- name: Clone static directory
|
- name: Clone static directory
|
||||||
git:
|
git:
|
||||||
repo: "{{ pleroma_static_repo }}"
|
repo: "{{ pleroma.static_repo }}"
|
||||||
dest: "/var/lib/pleroma/static"
|
dest: "/var/lib/pleroma/static"
|
||||||
force: yes
|
force: yes
|
||||||
when: pleroma_static_repo is defined
|
when: pleroma.static_repo is defined
|
||||||
become: yes
|
become: yes
|
||||||
become_user: pleroma
|
become_user: pleroma
|
||||||
- name: Migrate DB
|
- name: Migrate DB
|
||||||
|
@ -5,15 +5,15 @@ import Config
|
|||||||
config :pleroma, Pleroma.Web.Endpoint,
|
config :pleroma, Pleroma.Web.Endpoint,
|
||||||
url: [host: "{{ pleroma_url }}", scheme: "https", port: 443],
|
url: [host: "{{ pleroma_url }}", scheme: "https", port: 443],
|
||||||
http: [ip: {127, 0, 0, 1}, port: 4000],
|
http: [ip: {127, 0, 0, 1}, port: 4000],
|
||||||
secret_key_base: "{{ pleroma_secret_key_base }}",
|
secret_key_base: "{{ pleroma.secret.key_base }}",
|
||||||
signing_salt: "{{ pleroma_signing_salt }}"
|
signing_salt: "{{ pleroma.secret.signing_salt }}"
|
||||||
config :pleroma, :instance,
|
config :pleroma, :instance,
|
||||||
name: "{{ pleroma_instance_name }}",
|
name: "{{ pleroma.instance.name }}",
|
||||||
desc: "{{ pleroma_instance_desc }}",
|
desc: "{{ pleroma.instance.desc }}",
|
||||||
email: "{{ pleroma_instance_email }}",
|
email: "{{ pleroma.instance.email }}",
|
||||||
notify_email: "{{ pleroma_instance_notify_email }}",
|
notify_email: "{{ pleroma.instance.notify_email }}",
|
||||||
limit: "{{ pleroma_char_limit }}",
|
limit: "{{ pleroma_char_limit }}",
|
||||||
registrations_open: {{ pleroma_openreg }},
|
registrations_open: {{ pleroma.openreg }},
|
||||||
static_dir: "/var/lib/pleroma/static"
|
static_dir: "/var/lib/pleroma/static"
|
||||||
config :pleroma, Pleroma.Upload,
|
config :pleroma, Pleroma.Upload,
|
||||||
uploader: Pleroma.Uploaders.Local,
|
uploader: Pleroma.Uploaders.Local,
|
||||||
@ -28,7 +28,7 @@ config :pleroma, :media_proxy,
|
|||||||
config :pleroma, Pleroma.Repo,
|
config :pleroma, Pleroma.Repo,
|
||||||
adapter: Ecto.Adapters.Postgres,
|
adapter: Ecto.Adapters.Postgres,
|
||||||
username: "pleroma",
|
username: "pleroma",
|
||||||
password: "{{ pleroma_db_password }}",
|
password: "{{ pleroma.db.pass }}",
|
||||||
database: "pleroma",
|
database: "pleroma",
|
||||||
hostname: "{{ pleroma_db_hostname }}",
|
hostname: "{{ pleroma_db_hostname }}",
|
||||||
pool_size: 10
|
pool_size: 10
|
||||||
|
Loading…
Reference in New Issue
Block a user