Skip to content

Commit

Permalink
base_vm, ros_ide_vm: Rename clever to clover
Browse files Browse the repository at this point in the history
  • Loading branch information
sfalexrog committed Aug 3, 2020
1 parent 345d639 commit 9c7e192
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before_install:
bionic contrib >> /etc/apt/sources.list" && sudo apt-get update && sudo apt-get
install build-essential gcc make linux-headers-$(uname -r) virtualbox-6.0 && sudo
usermod -aG vboxusers $(whoami)
- mkdir output-virtualbox-iso && pushd output-virtualbox-iso && wget --progress=dot:giga https://github.com/sfalexrog/clever_vm/releases/download/v0_base_vm/clever-devel.ova
- mkdir output-virtualbox-iso && pushd output-virtualbox-iso && wget --progress=dot:giga https://github.com/sfalexrog/clever_vm/releases/download/v0.1_base_vm/clover-devel.ova
&& popd
script:
- "./build.sh"
Expand Down
6 changes: 3 additions & 3 deletions base_vm.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"variables" : {
"user": "clever",
"password": "clever",
"vm-name": "clever-devel"
"user": "clover",
"password": "clover",
"vm-name": "clover-devel"
},
"builders": [{
"type": "virtualbox-iso",
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi

echo "--- Using Packer version $(${PACKER} --version)"

if [ ! -f output-virtualbox-iso/clever-devel.ova ]; then
if [ ! -f output-virtualbox-iso/clover-devel.ova ]; then
echo "--- Building base image"
${PACKER} build -only=virtualbox-iso base_vm.json || true
fi
Expand All @@ -28,6 +28,6 @@ ${PACKER} build ros_ide_vm.json
echo "--- Marking the VM"

GIT_REV=$(git rev-parse --short HEAD)
mv ./output-virtualbox-ovf/clever-devel.ova ./output-virtualbox-ovf/clover-devel_v0.20+${GIT_REV}.ova
mv ./output-virtualbox-ovf/clover-devel.ova ./output-virtualbox-ovf/clover-devel_v0.20+${GIT_REV}.ova

echo "--- All done!"
10 changes: 5 additions & 5 deletions http/preseed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ubiquity console-keymaps-at/variant select us
d-i kbd-chooser/method select British English

### Network
d-i netcfg/get_hostname string clever-devel
d-i netcfg/get_hostname string clover-devel
d-i netcfg/get_domain string unassigned-domain

### Clock and time zone setup
Expand All @@ -41,10 +41,10 @@ d-i partman/choose_partition select finish
d-i partman/confirm boolean true

### Account setup
d-i passwd/user-fullname string clever
d-i passwd/username string clever
d-i passwd/user-password password clever
d-i passwd/user-password-again password clever
d-i passwd/user-fullname string clover
d-i passwd/username string clover
d-i passwd/user-password password clover
d-i passwd/user-password-again password clover
d-i passwd/auto-login boolean true
d-i user-setup/encrypt-home boolean false
d-i user-setup/allow-password-weak boolean true
Expand Down
14 changes: 7 additions & 7 deletions ros_ide_vm.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"variables": {
"user": "clever",
"password": "clever",
"vm-name": "clever-devel",
"user": "clover",
"password": "clover",
"vm-name": "clover-devel",
"scriptsDir": "scripts",
"assetsDir": "assets"
},
Expand Down Expand Up @@ -41,17 +41,17 @@
"provisioners": [{
"type": "file",
"source": "{{user `assetsDir`}}/background/",
"destination": "/home/clever/Pictures"
"destination": "/home/{{user `user`}}/Pictures"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/pictures/",
"destination": "/home/clever/Pictures"
"destination": "/home/{{user `user`}}/Pictures"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/desktop/",
"destination": "/home/clever/Desktop"
"destination": "/home/{{user `user`}}/Desktop"
},
{
"type": "file",
Expand All @@ -71,6 +71,6 @@
{
"type": "file",
"source": "{{user `assetsDir`}}/vscode/",
"destination": "/home/clever/.config/Code/User/"
"destination": "/home/{{user `user`}}/.config/Code/User/"
}]
}

0 comments on commit 9c7e192

Please sign in to comment.