Skip to content

Instantly share code, notes, and snippets.

@justlooks
Last active December 24, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justlooks/6877927 to your computer and use it in GitHub Desktop.
Save justlooks/6877927 to your computer and use it in GitHub Desktop.
hi,i want to add the epel yum address, and install salt-minion client on the new installed system,but the result is
the epel added successfully,but the salt client not installed ,why?
add snippet in /var/lib/cobbler/kickstarts/sample_end.ks
%post
......
# add salt config
$SNIPPET('salt_config')
# End final steps
%end
add following content in /var/lib/cobbler/snippets/salt-config file
rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm && yum install salt-minion -y --nogpgcheck
sed 's/^#master:/& 192.168.142.128/' /tmp/mytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment