Nico Schottelius
dee266aca0
ignore "no crontab for ..." message
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Evax Software
5c70018411
switch the __rvm type to the new present/absent state scheme
13 years ago
Evax Software
196fb7e656
use new rvm install command ( fixes #67 )
13 years ago
Nico Schottelius
dfd60ca837
__package uses present/absent
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Chris Lamb
1557630e91
s/specifiend/specified/
...
Signed-off-by: Chris Lamb <lamby@debian.org>
13 years ago
Jake Guffey
4b11a6172d
Fixed variable naming in /etc/fstab.$name
...
had referenced $jailbase when meaning to reference $jaildir
13 years ago
Jake Guffey
14e851341a
Implemented Nico's suggestions
...
Parameterized {jailbase,jaildir}
Replaced all usages of /usr/jail with $jaildir
Explicitly fail if $os isn't FreeBSD
Removed $__type/files/ as it is pointless to have now
Updated man page
13 years ago
Jake Guffey
131889b454
Added jail_${name}_flags variable
...
To make future work, such as resource limiting (rctl(8)) easier, added
"-n ${name}" to jail_flags for each jail.
13 years ago
Jake Guffey
d39821782d
Copy /root to $jailbase/rw/$name/root
...
Copies /root to ${jailbase}/rw/${name}/root
Adds /root to /etc/fstab.${name}
13 years ago
Jake Guffey
847fc9d8c1
Multiple bugfixes
...
fixed remote copy command
fixed problem with code-remote when jail_enable wasn't in rc.conf
fixed problem with code-remote when jail_list wasn't in rc.conf
added check to see if /etc/devfs.rules exists before trying to use it
added dependency on __directory/usr/jail
13 years ago
Jake Guffey
f5437ccce6
Bugfix for jail_list
...
If jail_list wasn't already defined in /etc/rc.conf, gencode-remote wasn't adding the variable to the file.
13 years ago
pestaa
deafcc60e8
Workound lack of pipeline's integrity guarantee.
13 years ago
pestaa
f9c945cc86
Changed tactics. Sed's -i flag is not cross-platform.
13 years ago
Istvan Beregszaszi
cb47a7d56f
Fix indenting.
13 years ago
pestaa
0e11583b1e
Fix sed argumenting on FreeBSD. While specifying -i flag is optional on GNU sed, it is mandatory on non-GNU variants. In order to keep behavior backward-compatible, the backup file is always removed.
13 years ago
Steven Armstrong
e3f767f5a1
+= example
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
ffcf57ee45
implement --state exists
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
18a25dc65b
file must be last argument
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
386c12f251
nested quotes should not be escaped
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Nico Schottelius
e540502830
Missing cat in __package_yum
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
f3efa1e74d
enable __start_on_boot on amazon linux
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
db14277b41
move __mysql_server to types_submitted_for_inclusion
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
73113a2fe9
--whitespace
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Steven Armstrong
f3545a51fe
be nice with them users
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
10d0cf00d6
/special/raw/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
1ea0ea0b1b
add support for crontab EXTENSIONS, e.g. @reboot
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Jake Guffey
5dc8d305e5
Bugfix
...
Modified pipeline to determine ${name}'s version if it's installed.
13 years ago
Matt Coddington
38b2e56786
tiny fix for __start_on_boot/explorer/state
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Jake Guffey
46b916c0e1
Various bugfixes
...
Added logic to ensure that /etc/resolv.conf exists within a jail
Replaced /var/db, /var/tmp mountpoints with /var mountpoint in jail
Added logic to ensure that every jail is bound to an interface
Modified how information is inserted into the jail's rc.conf
Added ListenAddress directive for SSHd
Updated manpage to reflect these changes
13 years ago
Jake Guffey
20a3538e72
Fixed echoing entries
...
Entries weren't being properly echoed into /usr/jail/rw/${name}/etc/rc.conf
13 years ago
Jake Guffey
0515fd8483
Various bugfixes.
...
Needed to use '|| true' on subshell variable assignments in case of empty return
Added default status (started=true or false)
Added default devfs rules
Replaced <<- HEREDOC usage with <<
Added escapes where necessary within quoted strings or HEREDOCs
13 years ago
Jake Guffey
3ebda62f04
bugfix -- needed to pass '-r' to ${add_cmd} to retreive package from remote repository.
13 years ago
Jake Guffey
446f497c4c
Created deleteJail function. Ready to begin debugging.
13 years ago
Jake Guffey
18c0e947aa
Created initial createJail function. Script still can't delete jails yet.
13 years ago
Giel van Schijndel
12d2c6c199
__start_on_boot type: add support for OpenWRT
...
Signed-off-by: Giel van Schijndel <giel+cdist@mortis.eu>
13 years ago
Jake Guffey
b9c757b78a
Filled out man page, created gencode-local to copy jailbase to __target_host, filled out parameter list, made explorers useful, created basic layout within gencode-remote.
13 years ago
Benedikt Koeppel
cd8e286988
renamed --database to --name
13 years ago
Benedikt Koeppel
df512162cb
--password is optional now, and added --no_my_cnf option
...
if no password is specified, then __mysql_server simply installs the
mysql-server package and doesn't perform any additional tasks.
if --password is specified, it writes its own .my.cnf configuration file
with the root password. This behaviour can be turned of by setting
--no_my_cnf "true"
13 years ago
Giel van Schijndel
afdfb660c7
Add support for OpenWRT packages
...
Signed-off-by: Giel van Schijndel <giel+cdist@mortis.eu>
13 years ago
Jake Guffey
2e4e291449
Added gencode-local to sync jailbase with remote side, added .gitignore to keep from syncing jailbase.tgz with github, new explorer basepresent to look for /usr/jail/{base,jailbase.tgz}
13 years ago
Jake Guffey
377afe8b1c
Migrated to using present/absent for --state param.
13 years ago
Nico Schottelius
cfb8e7d372
move __run_command to types_submitted_for_inclusion directory
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Jake Guffey
d082815c81
Created explorers, man page, jailbase placeholder. Began initial development of gencode-remote.
13 years ago
Benedikt Koeppel
c67c0cf12d
fixed mysql_database type
...
can now install a database, and create a user who manages that database
13 years ago
Benedikt Koeppel
cfaee39e70
new type 'mysql_database'
...
installs a database on an existing mysql_server remotely
13 years ago
Benedikt Koeppel
6a491080f8
fixed man page for mysql_server
...
it is a singleton and thus can't have a name
13 years ago
Benedikt Koeppel
7715ba395c
fixed mysql_server type
...
can install now successfully
removes test database and all grants
sets a root password
13 years ago
Benedikt Koeppel
3a810fa5ea
fix manifest
13 years ago
Benedikt Koeppel
3ceb643487
fixed the generating of .my.cnf
13 years ago
Benedikt Koeppel
dc5fb8b769
fixed usage of __file
13 years ago