Ask Your Question
0

how to define static ip using razor

asked 2016-05-16 02:19:55 -0500

nimishmehta8779 gravatar image

I am fairly new to razor and trying to do product evaluation so that we could consider it in future. I am finding bit difficult to configure static ip using razor and also how to use kickstart file with tasks. Can you provide me simple example of both cases so that I could try that out.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-05-31 23:06:10 -0500

smcclellan gravatar image

Hello,

Take a look at this answer here, as it goes into detail on how to achieve static IPs: https://ask.puppet.com/question/24557...

For kickstart files with tasks, Razor includes several stock tasks for kickstarting e.g. RHEL. This is an example kickstart file that we ship as stock: https://github.com/puppetlabs/razor-s...

If you want to use a custom kickstart template (for this example, we'll customize the redhat task, but the same approach applies to others):

  • Make sure the config.yaml file includes a new path under task_path, e.g. task_path: /etc/razor/tasks:tasks
  • Create /etc/razor/tasks/redhat.task/kickstart.erb
  • Copy and modify the kickstart.erb file I linked above

When you boot a node that is eligible for a policy that uses the redhat task, it will pull your customized kickstart file instead of the stock kickstart file.

Let me know if you need any more info.

Scott

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2016-05-16 02:19:55 -0500

Seen: 65 times

Last updated: May 31 '16