memento Cobbler
Rédigé par Paulo
Aucun commentaire
Classé dans : Cobbler
Installation/configuration :
- http://cobbler.github.io/manuals/quickstart/
- manual : http://cobbler.github.io/manuals/2.8.0/
Commandes en vrac : #liste distribution - system - profile cobbler distro list cobbler system list cobbler profile list #detail distribution - system - profile cobbler distro report --name ..... cobbler system report --name ..... cobbler profile report --name ..... #variable cobbler system - profile cobbler system dumpvars --name ... cobbler profile dumpvars --name ... |
Obtenir le kickstart d'un system : #recup du ks interprété cobbler system getks --name puppet078012.a00001 #recuperer le ks wget http://192.168.1.X/cblr/svc/op/ks/system/2012v1.php |
Gestion des depots : #liste des dépots cobbler repo list #info sur un depot cobbler repo report --name XXX
|
Command | Usage |
---|---|
cobbler profile list |
Run this command on the RHN Satellite host to display a list of profiles |
cobbler distro list |
Display a list of kickstart trees, kernels, RAM disks, and other options |
cobbler system list |
Display a list of system records, created when a kickstart is scheduled |
cobbler profile report --name=profile-name or cobbler system report --name=system-name |
Display a more detailed output about a specific object |
cobbler profile edit --name=profile-name --virt-ram=1024 |
Edit various parameters. This example will allocate each virtualized installation of a given profile 1GB of RAM. |
cobbler system edit --name=system-name --netboot-enabled=1 |
Force a system to be reinstalled at the next reboot |
cobbler system edit --name=system-name --profile=new-profile-name --netboot-enabled=1 |
Assign a system to a new profile for reinstallation |
cobbler system find --profile=profile-name |
List all systems assigned to a profile |
cobbler system find --profile="abc" | xargs -n1 --replace cobbler system edit \ --name={} --profile="def" --netboot-enabled=1 |
Assign all systems currently set to the abc profile to the def profile and reinstall them the next time they reboot |
cobbler profile edit --name=profilename --kopts="variablename=3" --in-place |
Set an additional templating variable on a profile without modifying any of the other variables |
cobbler system edit --name=systemname --kopts="selinux=disabled asdf=jkl" |
Assign various variables to a system record, and disregard any old variables that might be set |
cobbler profile find --name="*webserver*" | xargs -n1 --replace cobbler profile edit --name={} --profile="RHEL5-i386" |
Set all new installations of any profile containing webserver as a string to use a profile named RHEL5-i386 |
source : https://cobbler.github.io/manuals/2.6.0/3/1_-_Cobbler_Primitives.html