Ask Your Question
0

Trying to remove /etc/hosts entires, but tabs vs spaces a issue on line [closed]

asked 2016-11-30 09:35:26 -0500

jrbast gravatar image

updated 2016-11-30 12:30:22 -0500

class profile::baseline::cleargoldenhosts { fileline { 'uxlab028': path => '/etc/hosts', line => "161.222.54.56 uxlab028.schneider.com uxlab028", match => "161.222.54.56\tuxlab028.schneider.com\tuxlab028", matchfor_absence => true, } }

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by jrbast
close date 2016-11-30 12:29:33.975334

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-11-30 09:48:05 -0500

don't use fileline for this use host:

host { 'tuxlab028.schneider.com':
    ensure => 'absent',
  }
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-30 09:35:26 -0500

Seen: 36 times

Last updated: Nov 30 '16