A comprehensive guide on setting up Cobbler on CentOS 6.x for mirroring repos and server kickstarts, including EPEL enablement and security setup.

Installing Cobbler on CentOS 6.x

I needed a simple way to mirror some repos, and potentially kickstart some servers at a future date. While something like The Foreman↗ would do the build side of things it doesn’t repo mirrors (yet). So I did an install of Cobbler↗ . This turned out to be more stright forward than I thought, first you need to ensure EPEL↗ is enabled …. Installing Cobbler on CentOS 6.x 1/1 y y c c s s s s c v # [ m [ m [ m [ m # c c # h u u h h e e e e o i d o d o a o a o o o t m m k k r r r r b m M n d h d u d u d o b b c d c c v v v v b a s u c u t u t u n b b o i i i o o i i i i l / k ] l p l h l h l c l l b g n n n n c c c c e e e e ] e e e o e e e e b e s s f f e e e e r t n r r r l s t t i i c t = = t = i = d e t a a g g h x c c g / h i z o c s r l l t i o o e c e m m c a a a n h y / l l c x t n b b t o a a a u t u e e n s e o i p e b b - b f n n t t i t c c e t h c b n d t l l l b o a a i h o h s k t c t o b e d e e o l l g g o n n z a s / t b l t r r r a e l e e n _ ] _ v c p b e d e s d d d r o _ _ ] c a e t o : l r s t e / w d d o l h b / e d o t a s s r m i n n n l a e b / r n a r t t s o n s s f o n l f o r t a a d g m m i w d u e t c n t r t u a a g a s r p o t u l c s s f l r e / . b s e h q q i l u r u l b s a l n n s i l . n e a e n e c g t m r u r o e h e s x - n s e . . w f a d n e … f n i c b . o d g s l e u p l p s . y o a t e k w s d i i s “ u c n w C / k g o o p s r b u t … d b b a . l / r f e e t o r p r ” e l t c / h o 6 e b / b i w l 3 e e 8 b r 6 / i e n p t e e l r - f r a e c l e e a t s o e - c 6 o - b 8 b . l n e o r a r / c h c . o r b p b m l e r , c h a n g e t h a t b y r u n n i n g … . ….. all done. You should be able to access your installation at ….. ...

October 13, 2013 · 4 min · Russ Mckendrick
A concise tutorial on setting up SaltStack for centralized server management on CentOS, including master-minion setup and basic commands.

SaltStack on CentOS 6.x

Had a play with SaltStack↗ today, it’s a good way to manage multiple machines from a central location. It runs as a Server (master) and client (minion). First we need to install the Salt-Master, this assumes you are installing on CentOS and don’t mind having EPEL installed on both the master and minion …. SaltStack on CentOS 6.x 1/3 # y y # y c s s # # y c s s u u u h e e u h e e I m m I m k d r I R m k d r n n c v n e c v s u i s i o - i s p i o - i t p n t n n i c t l n n i c a d s a s f e a a s f e l a t l t i ‘ l c t i ‘ l t a l a g s s l e a g s s e l l / a l / a E l t l s # l t $ l s # l P - h a i t h s a m t E y h e s l n - e a s l a - L t a t t m l a t s m t s l - e a s t l - t i a p a t m r s a - t m e n n : l - a f t l m - i r i d / t m s a e t a m n : o / - a t c r - s i i n U f m s e e m t n o s p t a t r : s i e i n a s d p s e t n r o l t a . t r o 0 a i . n o t a t l e n . r o y n / r e i r 0 t n o m t n . u a o u 0 r s n x . d t . 0 o e b n / m r o c i a : t s n i h u t n m . e . a t e r c n h d f o a e u a m g / c e m p e w r a u : i . s b t y t / 0 h o e e . u r p 0 t r e . h d a l 0 e o n / . m d 6 0 F a / / Q i m i g D n i 3 ’ N . n 8 c i 6 / o o o / e f m n e t / s p c y g e / o ’ l s u - a r / r l e e t s t l / a c e m l / a a t s s s - a e t m l - e a t 6 r s / - t m 8 e i . r n n i o o a n r c h . r p m Now we have a minion talking to the master we need to accept the certificate; ...

October 6, 2013 · 4 min · Russ Mckendrick
Step-by-step guide to setting up a Puppet Server and agent on CentOS 6.4, including Apache configuration and SSL certificate management.

Puppet Server & Client Installation CentOS 6.x

This post assumes that you are starting with a clean minimal CentOS 6.4 64bit server and you have a full hostname set. Puppet Server Installation …… Puppet Server & Client Installation CentOS 6.x 1/4 # # y # y # / # p # m m c c # c P P P P L < # # D A # / / c c # n # u u e u k k p h a a a a a i V S S S S S S S S S S S # R R R o < O A O A P e e h h e H I m D m S t S p C d d C t s s s s s i S O S S S S S S S S S S T e e e c D p l r l V A S t t k k c t b o n o t c e p r i i w r s s s s t r L n L L L L L L L L L L h a q q q u i t l d l D i C o c c c c h s o s s i w i a / t e e r r u n e > e e e e e t E l P C C C C C C V V O e u u u u m r i o e o i r H r / / o o e t s t t n n n r i t a s a n n n n n u n y r i e e e A A e e p s t e e e e e o w r w r t E t i i n n c a h n a s l s t n P t - / r p t / g g g g a g o p r r r C R r r t e h s s s n c n O e u _ n n f f k t a l t o t i u r e p u / u e e e e e e 8 l i a t h t t t e e i i i e t t t t t s v A f c a C o i i i i m l a a a P t p e s s p t r r r r 1 H n l o e i i i r v f f o r n H H H R o e l r t l O u t t g g i - e l d l u . p s t / r h p t c H M M P 4 o e l c r f f f t o y y n e t e e e o r N r l o o H N t . . t l p l l p d e o h u / a e h / i a a o 0 s o o S i i i i c C D s q i a a a o y o r o m r o F d d p h s n — u p p / t u e s s r t e h g x x o t O w l u c c c f a l e u c d d d t n i w y s I t / / u t p - u - e p r r h e t h P R l n i a a a i t i p + e a e e e e d , A > t G h p h p t l | M p y p y t u M c d / a / / V t P o e I * h A t t t t c i e t S s t r r r u e D l > e u t p p i a e p - p a e i s r p u H p e o q d : i l e e e e a o n h t t i u s e l p t e d s g k t h e v S p s r h e u s O d r l u l 8 g l F K C t n t d o s s s s r N n s p p t t r e t t i e e t s e a / p r S / f S e e 1 h H i e h e F 1 E h n e e e r o y e e d m o e e & t - m r t e e c r p p / T c o i s T 4 - I l y a F i o n e t t t s n r t a n n p s p s - v m r r t e u e s o r z t i 0 s S G e F i i l p v a i s h e v m s s i u e : e e e a v o / p t h f n m e s m > e S H i n l e t V d n X X X h a i a t t n 8 r p / r n r s t i r p p / a o f a e c L : l F e i a e f - - - a r c s a e g 1 e e / v h t o c y u e e r r . n 6 1 u v ! v e i o r r o S C C r e e t r r 4 l y e a e e p t x e d c 0 6 r 2 A a l v n s s r S l l e s e t 0 t u r n r r s p / t p / e 0 0 i D r e v a a m L i i p r o h r m c u p t e r p u p 0 0 t H v a r l + a a - e e p u f e e . f e s n u r t a r u p u O y : l a r E r t S n n u p s f p p r d t p u / c a p p p n R i r l x e i u t t p p t h o u o a o p c r k c p e p c C b a l i p o b - - p e o o s p m p r n e t a / k e t e r 4 l r i b o u n j D V e t p s p u t t u c p / t t y p i / b r s e N e t t e P p s m r k u f / m m p R u b l p t e o c r r t u p t a e / p i r a a t S p / i p u C d n t % i r a n l p e a s p p l a s s o A p p b u p e { f a c a a p t r t f u e e c t t g : e u / p p r t t % S y c k m b e - t e o p t s k e e r - t p p p e t o o { S k e s t s u r r p m / / r r a M / p u e t D S L % p . e p e a c p . p E s e p t a p t S _ { p u i c L r e P t s o u c h D s t p s t a h L C S u p t o a v n u m t n p o y I l e s s a s e _ L S p p m b e s p a e f p n . U s t s l s C I L p e s / s r u p s r i e f M c s / l p L E _ e t e e , r e t d g t A : e l s c t u I N C t m t l h e t e / . m l - r / s c a h p E T L m a / a t = r p r a t L t p l a e p N _ I a s t 6 p t r M d u u s e O s r / c e T S E s t o / a p u a b t A r W / i c c a c t _ _ N t e p c d n s l / e P : p v a a _ l S D T e r p r h n t i u r A i - u a / _ c i m _ N _ r d u o e h i e c s d C f E p t c c r e a D } V d p d t n r r H X p e a r l n s N e E p u a t g / c E n P e _ _ t . t t } R p e c n p R u s o _ e t k c . p e e I u t t d d e a s h n C e . e r p e c r F b . s - n c r a f O d y y t e m e Y l y / n d a k / r i N e o s . m r p } i o i e e b s e g F d u p t r e c u 3 c v l A h / . I r p e i o / r 8 e e e p a p r G f d u m f c d 6 s l = p r u u o o p i e o / s t l e p r m p c s m p a m r i / p a e a s a u r o u c p e c i t t i p y d e a u t o n . e n p _ t p / m . y . e d s i p r p c o c t e s o e a a o u o l p l n t c t m r m a e / k i . d b n r r / b p o a s d u a p i e m n - e b c u l m a d r n y k p i i e c - / p t n t l i d p e y . h e e e u t . c a a s v p m o t s e p a m e l e s . y - t t p o 6 r m e e u - u a r m 6 b s d r . y t / e n g e p o e r l a m d a r s / c c t e h g m . c p r r c e p - f m c e + r h + e t n t c c p u e : r s / l / - i w d n w e w v t . e h m l i i s r z r l f o i i r b l s - e e d r e v v i e c l e . m o a r k g e / s a i u t t e o s m / a d k l e . f o e p d e o n r s a s p l r - o d j e e v c e t l . o r r u g b / y p g u e b m / - e r p a e c l k / 6 r / u i b 3 y 8 g 6 e / m e - p p e a l s - s r e e n l g e e a r s - e n - a 6 t - i 8 v . e n - o l a i r b c s h . r r u p b m y g e m - p a s s e n g e r - n a t i v e r u b y g e m - p a s s e n g e r r u b y g e m - f a s t t h r e a d l i b e v m o d _ p a s s e n g e r g i t Install the agent …… ...

August 31, 2013 · 14 min · Russ Mckendrick