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

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

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

@ -15,7 +15,7 @@
- name: Always mount the lotus-land-story volume - name: Always mount the lotus-land-story volume
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
dest: /etc/fstab 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 state: present
- name: Make /mnt/lotus-land-story/postgresql - name: Make /mnt/lotus-land-story/postgresql
ansible.builtin.file: ansible.builtin.file:

Loading…
Cancel
Save