summaryrefslogtreecommitdiff
path: root/morphlib/exts
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'baserock/tiagogomes/vbox-networking2' of ↵Tiago Gomes2013-06-171-7/+65
|\ | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed by Richard Maw, Lars Wirzenis, Daniel Silverstone and Jonathan Maw.
| * Improve network setup of the virtualbox write extension.Tiago Gomes2013-06-061-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The VirtualBox deployment write extension will configure networking in the following manner: - One host-only network interface will be used to group the virtual machines together (and to give access between the host and the virtual machines). It will be bound to eth0 of the virtual machine. - One NAT (or Bridge) network interface will be used to allow the virtual machines access to the wider network. This will be bound to eth1 of the virtual machine. Now deployment to virtual box will require that both HOST_IPADDR and NETMASK environment variables be set, and also configuration for eth0 and eth1 is expected in the NETWORK_CONFIG environment variable. This commit also replaces some run_cmd with ssh_runcmd.
* | Merge branch 'baserock/tiagogomes/default-symlink' of ↵Tiago Gomes2013-06-171-1/+9
|\ \ | | | | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed by Richard Maw and Lars Wirzenius
| * | Set up a symlink to the default system version in rawdisk/kvm/vboxTiago Gomes2013-06-141-1/+9
| |/ | | | | | | | | | | | | deployments Also Change them to use the "default" symlink in the extlinux.conf they create, instead of hardcoding the current system version name
* | Change the symbolic link target and directory the default system on NFS server.Tiago Gomes2013-06-171-9/+9
|/ | | | | | | | | With this we'll have "default -> factory" instead of "default-run" -> "factory/run". Also change to use VERSION_LABEL instead of VERSION and "factory" instead of "version1", to be more consistent with other parts of the code.
* Add the install-files extension to morphJonathan Maw2013-06-061-0/+112
|
* kvm.write: Set VM to autostart if specifiedJonathan Maw2013-06-031-0/+3
|
* kvm.write: use ssh_runcmdJonathan Maw2013-06-031-4/+3
|
* Fix tar write extensionJonathan Maw2013-05-311-1/+1
|
* Tar write extension fails if arguments not setJonathan Maw2013-05-301-0/+2
|
* Add tar write extensionJonathan Maw2013-05-301-0/+19
|
* Add ssh-rsync write extensionJonathan Maw2013-05-281-0/+181
| | | | | This is used to perform upgrades on running baserock systems. It requires rsync on the target system
* Fix kvm working without autostartJonathan Maw2013-05-241-1/+1
|
* Merge remote-tracking branch 'origin/tiagogomes/upgrades2'Lars Wirzenius2013-05-231-4/+50
|\ | | | | | | | | | | | | | | Conflicts: morphlib/exts/nfsboot.write Sorted out the conflict, and tested by deploying first devel and then base to the same rawdisk, and things worked.
| * Use the name factory for the first system version.Tiago Gomes2013-05-232-2/+2
| |
| * Implement raw disk upgrades.Tiago Gomes2013-05-231-4/+50
| | | | | | | | | | We perform this by cloning an existing orig directory and then updating the contents using rsync
* | nfsboot deployment creates local state dirsJonathan Maw2013-05-201-0/+8
| |
* | Can define version by the environment variable 'VERSION'Jonathan Maw2013-05-201-1/+14
|/ | | | If the version already exists on the device, deployment is aborted
* EXTS: simple-network.configureDaniel Silverstone (br7vm)2013-05-171-0/+143
| | | | | | Simple networking configuration extension, taking NETWORK_CONFIG from the environment and writing /etc/network/interfaces out during deployment configuration.
* Make nfsboot use the new hierarchyJonathan Maw2013-05-141-11/+74
|
* Make rsync delete files that shouldn't existJonathan Maw2013-05-141-1/+1
|
* Rename the drop-config-files extension to add-config-filesTiago Gomes2013-05-131-0/+0
|
* Merge git://git.baserock.org/baserock/baserock/morph into ↵Tiago Gomes2013-05-102-11/+17
|\ | | | | | | baserock/tiagogomes/drop-config
| * Merge branch 'baserock/richardmaw/kvm-write-allow-autostart' of ↵Richard Maw2013-05-132-11/+17
| |\ | | | | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed-by: Jonathan Maw on IRC.
| | * Add AUTOSTART to kvm and libvirt write extensionsRichard Maw2013-05-082-11/+17
| | | | | | | | | | | | | | | | | | If AUTOSTART is 'yes' then the VM will be started once it is created. If it is 'no' or undefined, then it will need to be manually started. If it is any other value, then an exception is raised.
* | | Add a new configuration extension to drop configuration files to the image /etcTiago Gomes2013-05-101-0/+27
|/ /
* | Fix permissions on the ssh configure extensionTiago Gomes2013-05-091-2/+4
| |
* | Improve the ssh configuration file.Tiago Gomes2013-05-091-10/+11
| | | | | | | | | | | | - Don't fail if the root/.ssh directory does not exist when adding entries to the known_hosts file - Use shutil.copyfilobj to copy the file contents - Use the python with statatement when opening files
* | Merge branch 'support-known-hosts' of ↵Richard Maw2013-05-091-0/+16
|\ \ | |/ |/| | | | | | | git://git.baserock.org/baserock/baserock/morph A column width error was fixed up in the merge.
| * Allow to add public ssh keys to known hosts fileTiago Gomes2013-05-091-0/+15
|/
* Fix unfortunate typo in ssh configuration extensionRichard Maw2013-05-081-1/+1
| | | | | | This tiny typo unfortunately makes root unable to use ssh, since ssh refuses to authenticate if your private key is globally readable, and the typo causes the private key to be given the public key's permissions.
* Fix copyright yearLars Wirzenius2013-04-121-1/+1
| | | | | We only have written this this year, so it should be copyright this year only.
* Merge branch 'master' of git://git.baserock.org/baserock/baserock/morphLars Wirzenius2013-04-121-3/+3
|\
| * Fix nfsboot write-extensionJonathan Maw2013-04-081-3/+3
| | | | | | | | Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
* | Merge branch 'master' of git://git.baserock.org/baserock/baserock/morphLars Wirzenius2013-04-082-0/+193
|\ \ | |/
| * Add nfsboot write extensionJonathan Maw2013-04-051-0/+161
| | | | | | | | | | | | | | | | | | | | | | | | The 'location' command-line argument refers to the hostname of the 'nfsboot server', a baserock system that has an nfs server, the directory '/srv/nfsboot/nfs', and a tftp server that hosts files from the directory '/srv/nfsboot/tftp'. The write extension will read the hostname of the target system and copy its root filesystem to /srv/nfsboot/nfs/<hostname> and its kernel to /srv/nfsboot/tftp/<hostname>. It will then configure the nfs server to export that nfs root.
| * Add nfsboot configuration extensionJonathan Maw2013-04-051-0/+32
| | | | | | | | | | | | | | | | | | This configuration-extension removes every network interface but the loopback interface from /etc/network/interfaces and stops /etc/fstab from mounting "/". It will only do this if the environment variable NFSBOOT_CONFIGURE is set on the `morph deploy` command-line.
* | Fixed error SSH configuration extensionRichard Holland2013-04-041-6/+8
| | | | | | | | | | | | Fixed error in function copy_rename_key that tried to place key in non existent directory. Required use of os.path.basename to leave name of key and remove rest of path.
* | SSH Configuration ExtensionRichard Holland2013-04-031-0/+141
|/ | | | | Added a configuration extension that copies SSH keys across to the deployed system.
* Set RAM size in VirtualBox deploymentsLars Wirzenius2013-03-281-1/+3
|
* Set RAM size for kvm deploymentLars Wirzenius2013-03-281-1/+4
|
* Implement ATTACH_DISKS in virtualbox-ssh.writeLars Wirzenius2013-03-201-1/+11
|
* Add ATTACH_DISKS support to kvmLars Wirzenius2013-03-201-1/+8
|
* Fix virtualbox deploymentRic Holland2013-03-051-3/+5
| | | | | | It was missing an import for sys. It did not have the size of the disk either, this has also been fixed
* Improve message phrasingLars Wirzenius2013-02-121-2/+2
| | | | Suggested-By: Richard Maw
* Add missing argument to create_local_system methodLars Wirzenius2013-02-071-1/+1
| | | | Reported-By: Richard Maw
* Refactor: Add WriteExtension.create_local_system methodLars Wirzenius2013-02-073-68/+17
| | | | | | | | | | This allows code sharing amongst all the places that create a system in a raw disk image. This also adds the creation of a factory-run subvolume, and fixes error messages for errors that happen during a disk image creation. Suggested-By: Richard Maw Suggested-By: Sam Thursfield
* Remove debugging outputLars Wirzenius2013-02-073-29/+0
| | | | Suggested-By: Richard Maw
* Add a write extension for kvm+libvirtLars Wirzenius2013-02-061-0/+140
|
* Add a write extension for VirtualBoxLars Wirzenius2013-02-061-0/+158
|