forked from openfoodfoundation/ofn-install
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apt install lxd | ||
lxd init # enter a lot for default settings | ||
usermod -aG lxd maikel | ||
|
||
su - "$USER" # starts a new shell with the new group added | ||
|
||
lxc launch ubuntu:22.04 ofn-dev | ||
lxc exec ofn-dev -- sh -c 'cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub | ||
|
||
lxc list # to get IP address | ||
echo ' | ||
Host ofn.local | ||
Hostname 10.52.128.246 | ||
User root | ||
UserKnownHostsFile /dev/null | ||
StrictHostKeyChecking no | ||
PasswordAuthentication no | ||
LogLevel FATAL | ||
' >> "$HOME/.ssh/config" | ||
|
||
ansible-playbook -l lxc site.yml | ||
|
||
# Fail | ||
|
||
lxc restart ofn-dev | ||
ansible-playbook -l lxc playbooks/provision.yml |
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