doc/example.yml in devinstall-0.2.6 vs doc/example.yml in devinstall-1.0.0
- old
+ new
@@ -1,63 +1,65 @@
base:
rsync: /usr/bin/rsync
ssh: /usr/bin/ssh
scp: /usr/bin/scp
- sudo: /usr/bin/sshsudo
+ sudo: sshsudo
+defaults:
+ package: devinstall
+ env: dev
+ type: deb
+tests:
+# dev is the environment
+ dev:
+ machine: dboca.dev.local
+ folder: rs
+ user: dboca
+ command: "cd %f && make devtest"
local:
# folder - source folder
# temp - temporary folder
- folder: ~/work/project
- temp: ~/tmp
+ folder: ~/projects/devinstall
+ temp: ~/.tmp
build:
# host - build machine
# folder - rsync to?
# target - the folder where packages will be generated (defaults to folder)
# user - for ssh / rsync
# arch is the architecture for the generated package (like amd64 or i686)
user: dboca
- host: vm.development.lan
+ host: vm-dboca.dev.local
folder: rs
target: rs
arch: all
install:
# host - dev/prod deploy and install host
# user - for scp / ssh / rsync (defaults to base[user])
# environment - live/qa/dev/...
- user: dboca
- environments:
- dev:
- host: dev01.server.lan
- type: deb
- folder: ~ ## folder for scp
- user: dboca1
- arch: all
- prod:
- host: prod01.server.lan
- type: rpm
- arch: all
- # user defaults to install[:user]
+ dev:
+ user: dboca
+ host:
+ - server1.lan
+ - server2.lan
+ folder: /home/dboca ## folder for scp/dpkg -i
+ type: deb
+ arch: all
repos:
# for repository deployment
# in a repository should be all packages for all architectures so we don't have an 'arch:' field
- environments:
- dev:
- type: deb
- user: upload
- host: debian-repo01.server.lan
- folder: /srv/repo
- dev-rh:
- type: rpm
+ dev:
+ user: dboca
+ host: dboca.repo.lan
+ folder: /srv/repo/incoming
+ type: deb
packages:
- ui-lbgenerate:
-# might contain all the sections above (local, build, install, repodeploy)
+ devinstall:
+# might contain all the sections above (local, build, install, repos)
# type and build_command are mandatory
# in build_command the folowing expansions are made:
# %f build[folder]
# %t build[target]
# %p package (current package)
# %T type (deb, rpm, tar.gz ,...)
deb:
- build_command: "cd %f && dpkg-buildpackage"
- ui-lbcli:
- deb:
- build_command: "cd %f && dpkg-buildpackage"
+ build:
+ command: "cd %f/%p && dpkg-buildpackage"
+