Commit Graph

32 Commits

Author SHA1 Message Date
07dad25ec4 Make kickstart.user.exec work on clients using module
The kickstart.user.exec function was using the `kickstart infect`
command, which works on clients with kickstart installed (which is the
    case for `kickstart infect`ed terminals or baseline).
This change will lookup for the client existance and use it, or use the
compiled module.
2014-03-06 19:28:53 -03:00
44169e4f86 Unmute muted commands on debugging 2014-03-05 07:51:16 -03:00
cafc7b1d93 Extract kickstart.package.installed functions for each package manager 2014-03-03 19:18:26 -03:00
5f420e6f24 Introduce kickstart.user.exec 2014-03-03 11:10:03 -03:00
8216d790fa Make kickstart.package.installed return the status
Using `&&` was making the command only return when all the packages were
installed.
2014-03-03 11:00:39 -03:00
cb7507e5e6 Quote arguments for kickstart.file.contains and
kickstart.stream.contains

Even when quoting like `kickstart.stream.contains 'debian 5.0'` it would
not work properly.

It will now.
2014-03-03 10:54:35 -03:00
43ec3c569e Use release files to identify distro
Docker can run a different distro from the host. For example, Ubuntu
host with CentOS docker image.

The container uses the same kernel as the host tho. On a CentOS
container under Ubuntu, `uname -a` will report it to be an Ubuntu
kernel.

Linux distros comes with configuration files under `/etc` that helps
identify the family it is. An example of configuration files to help
identify is on http://linuxmafia.com/faq/Admin/release-files.html
2014-03-02 20:17:47 -03:00
02cc6bcbf9 Add yum support to kickstart.package functions
Yum only supports passing one package to check its info.
Other package managers allow you to have several packages name, and
return non-zero whenever one is not installed.

To have the same behaviour on yum, we iterate over the list until we
find one that is not installed.
2014-03-02 20:11:31 -03:00
56bf615b34 Introduce kickstart.stream.contains and kickstart.file.contains
The kickstart.stream.contains and kickstart.file.contains wraps the code
for checking for a string.
2014-02-27 14:55:29 -03:00
3635cab96b Migrate kickstart.codename into kickstart.os namespace 2014-02-27 10:48:55 -03:00
36a1a1a04e Migrate kickstart.os functions to its own file 2014-02-27 10:48:23 -03:00
f3aae7bd7b Remove unquote for mute 2014-02-25 14:52:51 -03:00
5096abefac Support for loading recipes and roles from modules
Modules are located under `modules` folder. They will be copied on
deploy as well.

An example structure:

```
sample
├── files
├── install.sh
├── modules
│   └── another
│       ├── files
│       ├── install.sh
│       ├── README.md
│       ├── recipes
│       └── roles
│           └── web.sh
├── README.md
├── recipes
└── roles
```

Roles and recipes will be available for your project to access it with
the commited functions
2014-02-23 13:23:25 -03:00
1b7edd0b1c Return the result of the kickstart.package.install or just skip when already installed 2014-02-22 16:48:45 -03:00
d4ad417027 Add kickstart.user functions 2014-02-22 16:48:09 -03:00
460fdd57f8 Add doc function 2014-02-21 19:30:18 -03:00
7ef54c4f5d Better error description when there is not possible download application 2014-02-21 18:04:39 -03:00
b848aa5799 Add function to create a user with default password if it does not exist 2014-02-21 16:39:09 -03:00
f599567230 Remove reference to old command 2014-02-21 15:50:53 -03:00
7b7ddef868 Create kickstart.file.link that will make sure a location is a link 2014-02-21 15:31:14 -03:00
e6ba63f470 Remove yum support. I didn't test on it yet 2014-02-21 15:17:22 -03:00
0535568078 Make curl silent 2014-02-21 15:12:33 -03:00
0cd91a63a7 Remove update and upgrade from apt in favour of kickstart.package ones 2014-02-21 15:12:20 -03:00
ffe0b8f65b Add profile support for mac 2014-02-21 15:11:59 -03:00
840a410ff2 Add a better way to check if the current target is an specific OS 2014-02-21 15:11:24 -03:00
dcebd553ab Add support to brew 2014-02-21 15:10:49 -03:00
71c881ee96 Function to check for command existence 2014-02-20 17:53:37 -03:00
f09368268d Properly mute grep error when adding files to profile.d 2014-02-20 17:48:13 -03:00
ec1d130d07 Add info to some kickstart functions 2014-02-20 17:25:37 -03:00
e4f5031d32 Fix create group command 2014-02-20 17:12:23 -03:00
e5ab920485 Add context information to info and commands 2014-02-20 17:11:52 -03:00
c4379c5baf Kickstart helper modules to be used on recipes 2014-02-20 12:50:49 -03:00