pxelator
14 years agoremove nfsroot for client
Dobrica Pavlinusic [Wed, 26 Aug 2009 09:15:23 +0000 (09:15 +0000)]
remove nfsroot for client

14 years agodeploy amt serial console from sysadmin cookbook
Dobrica Pavlinusic [Wed, 26 Aug 2009 09:06:49 +0000 (09:06 +0000)]
deploy amt serial console from sysadmin cookbook

14 years agokeep permissions from original file
Dobrica Pavlinusic [Wed, 26 Aug 2009 09:06:10 +0000 (09:06 +0000)]
keep permissions from original file

14 years agotest and fix mkdir
Dobrica Pavlinusic [Wed, 26 Aug 2009 08:59:50 +0000 (08:59 +0000)]
test and fix mkdir

14 years agoadded copy_once and modified append to understand exit in shell scripts and insert...
Dobrica Pavlinusic [Wed, 26 Aug 2009 08:43:40 +0000 (08:43 +0000)]
added copy_once and modified append to understand exit in shell scripts and insert before it

14 years agoadded serial port
Dobrica Pavlinusic [Tue, 25 Aug 2009 17:39:28 +0000 (17:39 +0000)]
added serial port

14 years agoserver::setup_from_dev will take configuration from existing device
Dobrica Pavlinusic [Tue, 25 Aug 2009 17:09:52 +0000 (17:09 +0000)]
server::setup_from_dev will take configuration from existing device

14 years agofix warning
Dobrica Pavlinusic [Tue, 25 Aug 2009 17:09:12 +0000 (17:09 +0000)]
fix warning

14 years ago-e doesn't return true for symlinks, so -l is right thing
Dobrica Pavlinusic [Tue, 25 Aug 2009 15:00:20 +0000 (15:00 +0000)]
-e doesn't return true for symlinks, so -l is right thing

14 years agodon't deploy anything by default
Dobrica Pavlinusic [Tue, 25 Aug 2009 14:55:39 +0000 (14:55 +0000)]
don't deploy anything by default

14 years agoshow client setup just to... well clients within range
Dobrica Pavlinusic [Mon, 24 Aug 2009 22:04:39 +0000 (22:04 +0000)]
show client setup just to... well clients within range

14 years agohttp://blog.rot13.org/2009/08/tap_magic_kvm_bridge_ssh_ethernet_tunnel.html
Dobrica Pavlinusic [Mon, 24 Aug 2009 18:07:19 +0000 (18:07 +0000)]
blog.rot13.org/2009/08/tap_magic_kvm_bridge_ssh_ethernet_tunnel.html

turned into simple package for pxelator... nice and simple
(runs same commands on both hosts :-)

14 years agomark some things as done
Dobrica Pavlinusic [Mon, 24 Aug 2009 13:58:13 +0000 (13:58 +0000)]
mark some things as done

14 years agospell check
Dobrica Pavlinusic [Sat, 22 Aug 2009 13:51:33 +0000 (13:51 +0000)]
spell check

14 years agowrote introduction chapter
Dobrica Pavlinusic [Sat, 22 Aug 2009 11:50:57 +0000 (11:50 +0000)]
wrote introduction chapter

14 years agokill all kvm processes
Dobrica Pavlinusic [Thu, 20 Aug 2009 20:14:16 +0000 (20:14 +0000)]
kill all kvm processes

14 years agoadded masquarade to default device and few helpers for that
Dobrica Pavlinusic [Thu, 20 Aug 2009 19:44:19 +0000 (19:44 +0000)]
added masquarade to default device and few helpers for that

14 years agoput all customization above debootstrap into rw overlay
Dobrica Pavlinusic [Thu, 20 Aug 2009 19:00:13 +0000 (19:00 +0000)]
put all customization above debootstrap into rw overlay
(aufs branch), record mounted variations correctly

14 years agoextracted first_time into once package
Dobrica Pavlinusic [Thu, 20 Aug 2009 17:36:17 +0000 (17:36 +0000)]
extracted first_time into once package

14 years agouse tag as identifier in url and strip path from it
Dobrica Pavlinusic [Thu, 20 Aug 2009 17:35:44 +0000 (17:35 +0000)]
use tag as identifier in url and strip path from it

14 years agoshow just messages from kvm hostname
Dobrica Pavlinusic [Thu, 20 Aug 2009 17:19:15 +0000 (17:19 +0000)]
show just messages from kvm hostname

14 years agocache response into $mounted
Dobrica Pavlinusic [Wed, 19 Aug 2009 23:12:18 +0000 (23:12 +0000)]
cache response into $mounted

14 years agomoved first_tile check to mount image if needed
Dobrica Pavlinusic [Wed, 19 Aug 2009 23:12:02 +0000 (23:12 +0000)]
moved first_tile check to mount image if needed

14 years agofirst semi-complicated setup to show off some of sysadmin DSL in PXElator
Dobrica Pavlinusic [Wed, 19 Aug 2009 22:48:54 +0000 (22:48 +0000)]
first semi-complicated setup to show off some of sysadmin DSL in PXElator

implement nfs root boot with writable snapshot directories for each
client which are rolled out on demand using aufs on server side.

So, client can implement additional layer of aufs if needed
(for /tmp and things like that) and offload more important files
(configuration changes) back to server via NFS.

14 years agoadded debian_mirror configuration variable with sensible default
Dobrica Pavlinusic [Wed, 19 Aug 2009 18:10:37 +0000 (18:10 +0000)]
added debian_mirror configuration variable with sensible default
(so you can use Apt-Cacher NG to provide local Debian mirror)
execute /tmp/configure.sh script after debootstrap

14 years agoadded favicon.ico
Dobrica Pavlinusic [Wed, 19 Aug 2009 18:08:23 +0000 (18:08 +0000)]
added favicon.ico

14 years agosemi-working nfsroot configuration
Dobrica Pavlinusic [Wed, 19 Aug 2009 17:01:57 +0000 (17:01 +0000)]
semi-working nfsroot configuration

14 years agodon't die without mac address (like flash proxy requests)
Dobrica Pavlinusic [Wed, 19 Aug 2009 17:01:20 +0000 (17:01 +0000)]
don't die without mac address (like flash proxy requests)

14 years agosupport for mirroring single file specified as url only
Dobrica Pavlinusic [Wed, 19 Aug 2009 17:00:46 +0000 (17:00 +0000)]
support for mirroring single file specified as url only

14 years agoadded ip::devices_up and use it for wireshark to offer sniffing targets
Dobrica Pavlinusic [Wed, 19 Aug 2009 12:46:07 +0000 (12:46 +0000)]
added ip::devices_up and use it for wireshark to offer sniffing targets

14 years agorefresh $package::debug from shared state on filesystem
Dobrica Pavlinusic [Wed, 19 Aug 2009 12:45:07 +0000 (12:45 +0000)]
refresh $package::debug from shared state on filesystem

14 years agodump amt data into audit log
Dobrica Pavlinusic [Wed, 19 Aug 2009 11:51:51 +0000 (11:51 +0000)]
dump amt data into audit log

14 years agouse client IP if it's not specified in amt file
Dobrica Pavlinusic [Wed, 19 Aug 2009 11:02:15 +0000 (11:02 +0000)]
use client IP if it's not specified in amt file
(assuming that AMT is on DHCP settings)

14 years agomove refresh after each request
Dobrica Pavlinusic [Wed, 19 Aug 2009 10:58:02 +0000 (10:58 +0000)]
move refresh after each request

14 years agorecord all dhcp request options in audit log
Dobrica Pavlinusic [Wed, 19 Aug 2009 10:56:04 +0000 (10:56 +0000)]
record all dhcp request options in audit log

14 years agocreate just one audit entry for each dns request
Dobrica Pavlinusic [Tue, 18 Aug 2009 22:02:11 +0000 (22:02 +0000)]
create just one audit entry for each dns request

14 years agodump full caller trace only with DEBUG enviroment set
Dobrica Pavlinusic [Tue, 18 Aug 2009 21:53:19 +0000 (21:53 +0000)]
dump full caller trace only with DEBUG enviroment set
fix sub name by extracting it from right caller

14 years agosplice part of caller output to useful one
Dobrica Pavlinusic [Tue, 18 Aug 2009 21:37:49 +0000 (21:37 +0000)]
splice part of caller output to useful one

14 years agoextract real coller and whole call stack
Dobrica Pavlinusic [Tue, 18 Aug 2009 21:30:55 +0000 (21:30 +0000)]
extract real coller and whole call stack

14 years agodon't push/pull dotfiles
Dobrica Pavlinusic [Tue, 18 Aug 2009 20:56:48 +0000 (20:56 +0000)]
don't push/pull dotfiles

14 years agoreally don't do mkdir if it exists
Dobrica Pavlinusic [Tue, 18 Aug 2009 14:31:56 +0000 (14:31 +0000)]
really don't do mkdir if it exists

14 years agomake push or make pull
Dobrica Pavlinusic [Tue, 18 Aug 2009 14:30:51 +0000 (14:30 +0000)]
make push or make pull

14 years agodon't push .svn directories
Dobrica Pavlinusic [Tue, 18 Aug 2009 14:30:06 +0000 (14:30 +0000)]
don't push .svn directories

14 years agomove debug to server tab
Dobrica Pavlinusic [Tue, 18 Aug 2009 12:46:41 +0000 (12:46 +0000)]
move debug to server tab

14 years agoexample CouchDB views
Dobrica Pavlinusic [Tue, 18 Aug 2009 12:19:52 +0000 (12:19 +0000)]
example CouchDB views

14 years agoand depdendency for it
Dobrica Pavlinusic [Tue, 18 Aug 2009 12:18:49 +0000 (12:18 +0000)]
and depdendency for it

14 years agoCouchDB view push/pull script
Dobrica Pavlinusic [Tue, 18 Aug 2009 12:18:39 +0000 (12:18 +0000)]
CouchDB view push/pull script

14 years agoadded grouping category to syslog
Dobrica Pavlinusic [Tue, 18 Aug 2009 08:57:47 +0000 (08:57 +0000)]
added grouping category to syslog

14 years agodon't create directory if it allready exists
Dobrica Pavlinusic [Mon, 17 Aug 2009 15:31:53 +0000 (15:31 +0000)]
don't create directory if it allready exists

14 years agocheck if process is running before killing it
Dobrica Pavlinusic [Mon, 17 Aug 2009 15:14:58 +0000 (15:14 +0000)]
check if process is running before killing it

14 years agocheck if client allready have ip address and if it does
Dobrica Pavlinusic [Mon, 17 Aug 2009 13:27:18 +0000 (13:27 +0000)]
check if client allready have ip address and if it does
don't respond to it unless it's in our ip range, but
record information for later review

14 years agobetter process messages and start/stop
Dobrica Pavlinusic [Mon, 17 Aug 2009 13:25:48 +0000 (13:25 +0000)]
better process messages and start/stop

14 years agofirst start without /tmp/pxelator.once doesn't die
Dobrica Pavlinusic [Mon, 17 Aug 2009 10:28:17 +0000 (10:28 +0000)]
first start without /tmp/pxelator.once doesn't die

14 years agoremoved svn:executable
Dobrica Pavlinusic [Mon, 17 Aug 2009 00:55:13 +0000 (00:55 +0000)]
removed svn:executable

14 years agostip package name from sub
Dobrica Pavlinusic [Mon, 17 Aug 2009 00:52:51 +0000 (00:52 +0000)]
stip package name from sub

14 years agosplit into start and message so we can reload code between
Dobrica Pavlinusic [Mon, 17 Aug 2009 00:51:24 +0000 (00:51 +0000)]
split into start and message so we can reload code between

14 years agoimprove parsing of syslog messages
Dobrica Pavlinusic [Mon, 17 Aug 2009 00:45:41 +0000 (00:45 +0000)]
improve parsing of syslog messages

14 years agoturn on syslog on client machines
Dobrica Pavlinusic [Mon, 17 Aug 2009 00:02:47 +0000 (00:02 +0000)]
turn on syslog on client machines

deploy with:

wget http://172.16.10.1:7777/deploy.sh
sh -x deploy.sh

14 years agofix url typo, must be same as name of the sub in config
Dobrica Pavlinusic [Sun, 16 Aug 2009 23:45:29 +0000 (23:45 +0000)]
fix url typo, must be same as name of the sub in config

14 years agorequire uml-utilities for tunctl
Dobrica Pavlinusic [Sun, 16 Aug 2009 23:32:47 +0000 (23:32 +0000)]
require uml-utilities for tunctl

14 years agoimplement Debian live and fix tests
Dobrica Pavlinusic [Sun, 16 Aug 2009 23:32:21 +0000 (23:32 +0000)]
implement Debian live and fix tests

14 years agoimplement first_time($identifier) with Storable
Dobrica Pavlinusic [Sun, 16 Aug 2009 23:31:30 +0000 (23:31 +0000)]
implement first_time($identifier) with Storable

14 years agocleanup audit start
Dobrica Pavlinusic [Sun, 16 Aug 2009 22:51:57 +0000 (22:51 +0000)]
cleanup audit start

14 years agoand start it
Dobrica Pavlinusic [Sun, 16 Aug 2009 22:24:22 +0000 (22:24 +0000)]
and start it

14 years agosimpliest possible syslog server
Dobrica Pavlinusic [Sun, 16 Aug 2009 22:23:55 +0000 (22:23 +0000)]
simpliest possible syslog server

14 years agouse kernel bridge (named virtual) instead of vde
Dobrica Pavlinusic [Sun, 16 Aug 2009 21:35:23 +0000 (21:35 +0000)]
use kernel bridge (named virtual) instead of vde

it's much faster, and we know all commands to use it :-)

14 years agowe really need to replace spaces in name
Dobrica Pavlinusic [Sun, 16 Aug 2009 21:27:39 +0000 (21:27 +0000)]
we really need to replace spaces in name

14 years agofix order of pid killing
Dobrica Pavlinusic [Sun, 16 Aug 2009 21:27:15 +0000 (21:27 +0000)]
fix order of pid killing

14 years agodon't create screenrc files with spaces in filename
Dobrica Pavlinusic [Sun, 16 Aug 2009 21:10:42 +0000 (21:10 +0000)]
don't create screenrc files with spaces in filename

14 years agosplit out wireshark as separate process from kvm
Dobrica Pavlinusic [Sun, 16 Aug 2009 00:03:30 +0000 (00:03 +0000)]
split out wireshark as separate process from kvm

implemented fork_if_active (for sub-processes) and fork_actions
which can be run without dependencies

14 years agoadded ip parser
Dobrica Pavlinusic [Sat, 15 Aug 2009 22:38:02 +0000 (22:38 +0000)]
added ip parser

14 years agodon't pass blessed objects
Dobrica Pavlinusic [Sat, 15 Aug 2009 14:41:33 +0000 (14:41 +0000)]
don't pass blessed objects

14 years agoshow also CouchDB database
Dobrica Pavlinusic [Sat, 15 Aug 2009 14:41:17 +0000 (14:41 +0000)]
show also CouchDB database

14 years agocleanup CouchDB API
Dobrica Pavlinusic [Sat, 15 Aug 2009 14:21:55 +0000 (14:21 +0000)]
cleanup CouchDB API

14 years agofix handling of non-existing configuration files and test it
Dobrica Pavlinusic [Sat, 15 Aug 2009 13:47:37 +0000 (13:47 +0000)]
fix handling of non-existing configuration files and test it

14 years agomkbasedir and conf_value which knows how to read symlinks from filesystem correctly
Dobrica Pavlinusic [Sat, 15 Aug 2009 13:44:13 +0000 (13:44 +0000)]
mkbasedir and conf_value which knows how to read symlinks from filesystem correctly

14 years agoadded dependency to couchdb for audit log
Dobrica Pavlinusic [Sat, 15 Aug 2009 13:10:14 +0000 (13:10 +0000)]
added dependency to couchdb for audit log

14 years agocleanup
Dobrica Pavlinusic [Thu, 13 Aug 2009 13:32:19 +0000 (13:32 +0000)]
cleanup

14 years agocleanup format::mac
Dobrica Pavlinusic [Thu, 13 Aug 2009 13:06:18 +0000 (13:06 +0000)]
cleanup format::mac

14 years agoadded Data::Structure::Util dependency
Dobrica Pavlinusic [Thu, 13 Aug 2009 12:45:30 +0000 (12:45 +0000)]
added Data::Structure::Util dependency

14 years agofix color allocation scheme
Dobrica Pavlinusic [Thu, 13 Aug 2009 12:42:46 +0000 (12:42 +0000)]
fix color allocation scheme

14 years agoextracted pretty printer into format.pm
Dobrica Pavlinusic [Thu, 13 Aug 2009 12:06:35 +0000 (12:06 +0000)]
extracted pretty printer into format.pm

14 years agoadded locale=hr to kernel append line for debian-live
Dobrica Pavlinusic [Thu, 13 Aug 2009 12:02:43 +0000 (12:02 +0000)]
added locale=hr to kernel append line for debian-live

14 years agosome work on logging format
Dobrica Pavlinusic [Thu, 13 Aug 2009 12:00:51 +0000 (12:00 +0000)]
some work on logging format

14 years agore-try put if newer version allready exists, unbless cloned data
Dobrica Pavlinusic [Thu, 13 Aug 2009 12:00:38 +0000 (12:00 +0000)]
re-try put if newer version allready exists, unbless cloned data

14 years agostrict removal only of command-line params
Dobrica Pavlinusic [Thu, 13 Aug 2009 00:06:48 +0000 (00:06 +0000)]
strict removal only of command-line params

14 years agocleanup logging a bit
Dobrica Pavlinusic [Wed, 12 Aug 2009 23:59:01 +0000 (23:59 +0000)]
cleanup logging a bit

14 years agofirst verision which boots virtual machine logging using new CouchDB::audit code
Dobrica Pavlinusic [Wed, 12 Aug 2009 22:56:45 +0000 (22:56 +0000)]
first verision which boots virtual machine logging using new CouchDB::audit code

it need some more work to make it less ugly (especially console output) and
less redundant/useful, but it's a start

14 years agobetter encode json and add some x_meta data
Dobrica Pavlinusic [Wed, 12 Aug 2009 22:27:57 +0000 (22:27 +0000)]
better encode json and add some x_meta data

14 years agosimple CouchDB API for storage and reporting
Dobrica Pavlinusic [Wed, 12 Aug 2009 19:49:36 +0000 (19:49 +0000)]
simple CouchDB API for storage and reporting

14 years agoadded shell execution and output parsing
Dobrica Pavlinusic [Wed, 12 Aug 2009 19:41:24 +0000 (19:41 +0000)]
added shell execution and output parsing

14 years agoping AMT address before trying to get SOAP response
Dobrica Pavlinusic [Wed, 12 Aug 2009 11:35:15 +0000 (11:35 +0000)]
ping AMT address before trying to get SOAP response

14 years agoreturn of the screen: log, scrollback buffers and remote access again!
Dobrica Pavlinusic [Wed, 12 Aug 2009 01:29:11 +0000 (01:29 +0000)]
return of the screen: log, scrollback buffers and remote access again!

14 years agotake hostname from dhcp request if it exists
Dobrica Pavlinusic [Tue, 11 Aug 2009 23:38:53 +0000 (23:38 +0000)]
take hostname from dhcp request if it exists

14 years agorefactor code to make clinet::change_ip which works
Dobrica Pavlinusic [Tue, 11 Aug 2009 15:55:26 +0000 (15:55 +0000)]
refactor code to make clinet::change_ip which works

14 years agorewrite ok and redirect headers into subs, allowing configurable url for redirect
Dobrica Pavlinusic [Tue, 11 Aug 2009 15:13:19 +0000 (15:13 +0000)]
rewrite ok and redirect headers into subs, allowing configurable url for redirect

14 years agocreate base conf/ip directory if it doesn't exist
Dobrica Pavlinusic [Tue, 11 Aug 2009 12:39:05 +0000 (12:39 +0000)]
create base conf/ip directory if it doesn't exist

14 years agoforce --yes to install of vde2
Dobrica Pavlinusic [Tue, 11 Aug 2009 12:38:23 +0000 (12:38 +0000)]
force --yes to install of vde2

14 years agodevice can now be first argument, stop dnsmasq if it exists
Dobrica Pavlinusic [Tue, 11 Aug 2009 12:38:04 +0000 (12:38 +0000)]
device can now be first argument, stop dnsmasq if it exists

14 years agoImport Net::TFTPd 0.04 so we don't depend on CPAN for deployment
Dobrica Pavlinusic [Tue, 11 Aug 2009 12:35:41 +0000 (12:35 +0000)]
Import Net::TFTPd 0.04 so we don't depend on CPAN for deployment