Skip to content

Aix filesystem don't configure nodename parametre for nfs  #280

@Nebucade

Description

@Nebucade

Describe the Bug

In documentation for AIX we have nodename parametre, but this one is not save in filesystem file.

Steps to Reproduce

puppet exemple for AIX 7.1 and AIX 7.2

filesystem{'/exploit/test':
ensure => 'present',
mount_options => 'ro,bg,hard,intr,retry=5,rsize=65536,wsize=65536,vers=3,proto=tcp,nosuid',
nodename => 'my_nas.test.local',
device => '/exploit',
fs_type => 'nfs',
atboot => true,
perms => 'ro',
}

in /etc/filesystem we have:

/exploit/test:                                                                                                                                                                                                                                    
  dev          = /exploit
   vfs          = nfs
   mount    = true
   options   = ro,bg,hard,intr,retry=5,rsize=65536,wsize=65536,vers=3,proto=tcp,nosuid                                                                                                                                                
   account   = false

and not this:

/exploit/test:                                                                                                                                                                                                                                    
  dev          = /exploit
   vfs          = nfs
   mount    = true
   options   = ro,bg,hard,intr,retry=5,rsize=65536,wsize=65536,vers=3,proto=tcp,nosuid                                                                                                                                                
   account   = false
  nodename = my_nas.test.local

Environment

  • AIX 7.1
  • AIX 7.2

Additional Context

I have add ligne 36 in lib/puppet/provider/filesystem/aix.rb the parametre nodename and it's ok:

  def create
    args = []

    attributes = [
      :ag_size,
      :large_files,
      :compress,
      :frag,
      :nbpi,
      :logname,
      :size,
      :initial_size,
      :encrypted,
      :isnapshot,
      :logsize,
      :maxext,
      :mountguard,
      :agblksize,
      :extended_attributes,
      :mount_options,
      :vix,
      :nodename,
    ]

Best regards,
Nicolas Lurvois

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions