Bug #6314

ralsh file generates code that 2.6.5rc2 errors on

Added by John Warburton over 1 year ago. Updated 4 months ago.

Status:Accepted Start date:02/14/2011
Priority:High Due date:
Assignee:- % Done:

0%

Category:-
Target version:2.7.x
Affected Puppet version:2.6.0 Branch:
Keywords:
Votes: 0

Description

Now that issue #3165 is resolved, I can use ralsh on file types. Oh, now the code for directories is generating errors :–(

root@engnsvr003# export RUBYLIB=/opt/local/pkgs/puppet-2.6.5rc2/lib:/opt/local/lib:/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/site_ruby/1.8/sparc-solaris2.10   
root@engnsvr003# /opt/local/pkgs/puppet-2.6.5rc2/bin/ralsh file /var | egrep -v time
file { '/var':
    type => 'directory'
    owner => '0',
    group => '3',
    ensure => 'directory',
    mode => '755',
}
root@engnsvr003# /opt/local/pkgs/puppet-2.6.5rc2/bin/ralsh file /var | egrep -v time > /tmp/var.pp
root@engnsvr003# /opt/local/pkgs/puppet-2.6.5rc2/bin/puppet apply /tmp/var.pp
Parameter type failed: type is read-only at /tmp/var.pp:7

Now, we remove the ‘type’, and it all works fine

root@engnsvr003# /opt/local/pkgs/puppet-2.6.5rc2/bin/ralsh file /var | egrep -v 'type|time' > /tmp/var.pp
root@engnsvr003# /opt/local/pkgs/puppet-2.6.5rc2/bin/puppet apply /tmp/var.pp
notice: Finished catalog run in 0.16 seconds

As seen in http://groups.google.com/group/puppet-users/browse_thread/thread/13904f6c8225d5e1

History

Updated by Nigel Kersten over 1 year ago

  • Status changed from Unreviewed to Accepted
  • Priority changed from Normal to High
  • Target version set to 2.6.x

Updated by Nigel Kersten over 1 year ago

John, we’re definitely going to fix this, but not in 2.6.5. I don’t believe we introduced this bug in the 2.6.5 RC process, but fixing the other bug has exposed this one. If this judgement turns out to be wrong, we’ll delay 2.6.5 to fix it.

We’ll sort out all the read-only properties for files next point release.

Updated by Nigel Kersten over 1 year ago

  • Affected Puppet version changed from 2.6.5rc1 to 2.6.0

Updated by Michael Stahnke 4 months ago

  • Target version changed from 2.6.x to 2.7.x

2.6.x is closed. Moving to 2.7.x

Also available in: Atom PDF