Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.vagrant
Berksfile.lock
Gemfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
.bundle
.cache
.kitchen
bin
.kitchen.local.yml
.coverage
tmp
packer_cache
packer-slackware64-14.1-virtualbox
2 changes: 2 additions & 0 deletions http/slackware64-14.1/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ a/which \
a/xfsprogs \
a/xz \
ap/nano \
ap/sudo \
ap/slackpkg \
n/curl \
n/dhcpcd \
Expand Down Expand Up @@ -210,6 +211,7 @@ $ROOT/sbin/lilo -r $ROOT -C /etc/lilo.conf
# add vagrant user
$ROOT/usr/sbin/useradd -R $ROOT -d /home/vagrant -m -G wheel -c "Vagrant User" -r vagrant
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> $ROOT/etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" $ROOT/etc/sudoers

# set root and vagrant password
echo "root:vagrant" | $ROOT/usr/sbin/chpasswd -R $ROOT
Expand Down
17 changes: 9 additions & 8 deletions scripts/slackware/postinstall.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/sh -x

# set the time
ntpdate -v -b in.pool.ntp.org
date > /etc/vagrant_box_build_time
# ntpdate -v -b in.pool.ntp.org
# date > /etc/vagrant_box_build_time

# install vagrant keys
mkdir /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
cd /home/vagrant/.ssh
wget -O authorized_keys 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub'
chown -R vagrant /home/vagrant/.ssh
chmod -R go-rwsx /home/vagrant/.ssh
# mkdir /home/vagrant/.ssh
# chmod 700 /home/vagrant/.ssh
# cd /home/vagrant/.ssh
# wget -O authorized_keys 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub'
# chown -R vagrant /home/vagrant/.ssh
# chmod -R go-rwsx /home/vagrant/.ssh


# As sharedfolders are not in defaults ports tree
# We will use vagrant via NFS
Expand Down
72 changes: 4 additions & 68 deletions slackware64-14.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
{
"type": "virtualbox-iso",
"boot_command": [
"<enter><wait>",
"<enter><wait>",
"dhcpcd eth0<enter><wait>",
"wget -O /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/slackware64-14.1/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh {{ .Name }}<enter><wait>"
"<enter><wait>",
"<enter><wait>",
"dhcpcd eth0<enter><wait>",
"wget -O /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/slackware64-14.1/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh {{ .Name }}<enter><wait>"
],
"boot_wait": "2m22s",
"disk_size": 10140,
Expand All @@ -42,75 +42,11 @@
[ "modifyvm", "{{.Name}}", "--memory", "512" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
]
},
{
"type": "vmware-iso",
"boot_command": [
"<enter><wait>",
"<enter><wait>",
"dhcpcd eth0<enter><wait>",
"wget -O /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/slackware64-14.1/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh {{ .Name }}<enter><wait>" ],
"boot_wait": "2m22s",
"disk_size": 10140,
"guest_os_type": "linux",
"http_directory": "http",
"iso_checksum": "d00807a86fad75bc90adf72c52c561202591d6ef",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/slackware64-14.1-iso/slackware64-14.1-install-dvd.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'shutdown -p now' > shutdown.sh; cat 'shutdown.sh' | su -",
"vm_name": "packer-slackware64-14.1",
"output_directory": "packer-slackware64-14.1-vmware",
"tools_upload_flavor": "linux",
"vmx_data": {
"memsize": "512",
"numvcpus": "1",
"cpuid.coresPerSocket": "1"
}
},
{
"type": "parallels-iso",
"boot_command": [
"<enter><wait>",
"<enter><wait>",
"dhcpcd eth0<enter><wait>",
"wget -O /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/slackware64-14.1/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh {{ .Name }}<enter><wait>" ],
"boot_wait": "2m22s",
"disk_size": 10140,
"guest_os_type": "linux",
"http_directory": "http",
"iso_checksum": "d00807a86fad75bc90adf72c52c561202591d6ef",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/slackware64-14.1-iso/slackware64-14.1-install-dvd.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'shutdown -p now' > shutdown.sh; cat 'shutdown.sh' | su -",
"parallels_tools_mode": "disable",
"prlctl_version_file": ".prlctl_version",
"vm_name": "packer-slackware64-14.1",
"output_directory": "packer-slackware64-14.1-parallels",
"prlctl": [
[ "set", "{{.Name}}", "--memsize", "512" ],
[ "set", "{{.Name}}", "--cpus", "1" ],
[ "set", "{{.Name}}", "--device-set", "cdrom0", "--iface", "ide" ],
[ "set", "{{.Name}}", "--device-del", "fdd0" ],
[ "set", "{{.Name}}", "--device-del", "parallel0" ]
]
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/opscode_slackware64-14.1_chef-{{user `chef_version`}}.box",
"override": {
"parallels": {
"vagrantfile_template": "vagrantfile_templates/parallels/freebsd.rb"
}
},
"type": "vagrant"
}
]
Expand Down