Alpha Chen 1 year ago
parent c005dfa87f
commit ee54fd71aa
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -1,14 +1,17 @@
# Lotus Land Story
```
# create the linode instance
terraform apply
# setup
export LOTUS_LAND_STORY_DOMAIN=...
# terraform
rake terraform
# add the IP to ~/.ssh/config
# make sure we can hit it
ansible all -m ping
# run ansible
ansible-playbook main.yml
# ansible
rake ansible
```

@ -15,11 +15,11 @@ task "terraform.tfvars" do |t|
end
task "vars.yml" do |t|
linode_volume = `terraform output -raw lotus_land_story_volume`
miniflux_password = `op read op://Private/Miniflux/password`.strip
File.write(t.name, YAML.dump({
"domain" => DOMAIN,
"miniflux_password" => miniflux_password,
}))
domain: DOMAIN, linode_volume:, miniflux_password:,
}.transform_keys(&:to_s)))
end
task default: %i[ terraform ansible ]

@ -15,7 +15,7 @@
- name: Always mount the lotus-land-story volume
ansible.builtin.lineinfile:
dest: /etc/fstab
line: /dev/disk/by-id/scsi-0Linode_Volume_lotus-land-story /mnt/lotus-land-story ext4 defaults,noatime,nofail 0 2
line: "{{ linode_volume }} /mnt/lotus-land-story ext4 defaults,noatime,nofail 0 2"
state: present
- name: Make /mnt/lotus-land-story/postgresql
ansible.builtin.file:

Loading…
Cancel
Save