Authconfig contiously rewriting the /etc/sysconfig/authconfig file, messing up Puppet run












4














I have been using this LDAP module for a long time in my Puppet environment. The module uploads these files to the RHEL-servers:



/etc/openldap/openldap.conf
/etc/pam_ldap.conf
/etc/nsswitch.conf
/etc/sssd/sssd.conf
/etc/sysconfig/authconfig
/etc/sudo-ldap.conf
/etc/openldap/cacerts/cacert.pem


After running this, it will run authconfig --updateall and the LDAP will start working. This worked perfectly fine on the RH6.2-servers we have, but RH6.4 gives an issue, while the only difference is an additional FORCELEGACY=YES line.



What can I do about this behaviour? The logical thing seemed to upload the /etc/sysconfig/authconfig file generated by /sbin/authconfig to the Puppetmaster, but it keeps rewriting the /etc/sysconfig/authconfig and all it does it change the order:



[root@rhel-server ~]# puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/extra_info.rb
Info: Caching catalog for rhel-server.domain.local
Info: Applying configuration version '1379669638'
Notice: /File[/etc/sysconfig/authconfig]/content:
--- /etc/sysconfig/authconfig 2013-09-20 13:18:24.165303819 +0200
+++ /tmp/puppet-file20130920-17419-lgtzfu-0 2013-09-20 13:44:05.388741384 +0200
@@ -5,22 +5,22 @@
USESSSDAUTH=no
USESHADOW=yes
USEWINBIND=no
+USESSSD=no
USEDB=no
FORCELEGACY=yes
USEFPRINTD=yes
-USEHESIOD=no
FORCESMARTCARD=no
-PASSWDALGORITHM=md5
USELDAPAUTH=yes
+USEPASSWDQC=no
IPAV2NONTP=no
-USELDAP=yes
+USELOCAUTHORIZE=yes
USECRACKLIB=yes
USEIPAV2=no
USEWINBINDAUTH=no
USESMARTCARD=no
-USELOCAUTHORIZE=yes
+USELDAP=yes
USENIS=no
USEKERBEROS=no
USESYSNETAUTH=no
-USESSSD=no
-USEPASSWDQC=no
+PASSWDALGORITHM=md5
+USEHESIOD=no

Info: FileBucket got a duplicate file {md5}b8bd9dc8120ab4be6b41ac5bb57e1192
Info: /File[/etc/sysconfig/authconfig]: Filebucketed /etc/sysconfig/authconfig to puppet with sum b8bd9dc8120ab4be6b41ac5bb57e1192
Notice: /File[/etc/sysconfig/authconfig]/content: content changed '{md5}b8bd9dc8120ab4be6b41ac5bb57e1192' to '{md5}f1cf038ce9c007f9eefe3b83fb674584'
Info: /File[/etc/sysconfig/authconfig]: Scheduling refresh of Exec[/usr/sbin/authconfig --updateall]
Notice: /Stage[main]/Ldap/Exec[/usr/sbin/authconfig --updateall]: Triggered 'refresh' from 1 events
Notice: Finished catalog run in 6.17 seconds
[root@rhel-server ~]#


So it seems no matter the order I have on the Puppetmaster for the authconfig-file, authconfig keeps rewriting it. This has in effect that every Puppet run (30 minutes) Puppet replaces the file and then authconfig changes the order in that file.



How can I solve this issue?










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    4














    I have been using this LDAP module for a long time in my Puppet environment. The module uploads these files to the RHEL-servers:



    /etc/openldap/openldap.conf
    /etc/pam_ldap.conf
    /etc/nsswitch.conf
    /etc/sssd/sssd.conf
    /etc/sysconfig/authconfig
    /etc/sudo-ldap.conf
    /etc/openldap/cacerts/cacert.pem


    After running this, it will run authconfig --updateall and the LDAP will start working. This worked perfectly fine on the RH6.2-servers we have, but RH6.4 gives an issue, while the only difference is an additional FORCELEGACY=YES line.



    What can I do about this behaviour? The logical thing seemed to upload the /etc/sysconfig/authconfig file generated by /sbin/authconfig to the Puppetmaster, but it keeps rewriting the /etc/sysconfig/authconfig and all it does it change the order:



    [root@rhel-server ~]# puppet agent --test
    Info: Retrieving plugin
    Info: Loading facts in /var/lib/puppet/lib/facter/extra_info.rb
    Info: Caching catalog for rhel-server.domain.local
    Info: Applying configuration version '1379669638'
    Notice: /File[/etc/sysconfig/authconfig]/content:
    --- /etc/sysconfig/authconfig 2013-09-20 13:18:24.165303819 +0200
    +++ /tmp/puppet-file20130920-17419-lgtzfu-0 2013-09-20 13:44:05.388741384 +0200
    @@ -5,22 +5,22 @@
    USESSSDAUTH=no
    USESHADOW=yes
    USEWINBIND=no
    +USESSSD=no
    USEDB=no
    FORCELEGACY=yes
    USEFPRINTD=yes
    -USEHESIOD=no
    FORCESMARTCARD=no
    -PASSWDALGORITHM=md5
    USELDAPAUTH=yes
    +USEPASSWDQC=no
    IPAV2NONTP=no
    -USELDAP=yes
    +USELOCAUTHORIZE=yes
    USECRACKLIB=yes
    USEIPAV2=no
    USEWINBINDAUTH=no
    USESMARTCARD=no
    -USELOCAUTHORIZE=yes
    +USELDAP=yes
    USENIS=no
    USEKERBEROS=no
    USESYSNETAUTH=no
    -USESSSD=no
    -USEPASSWDQC=no
    +PASSWDALGORITHM=md5
    +USEHESIOD=no

    Info: FileBucket got a duplicate file {md5}b8bd9dc8120ab4be6b41ac5bb57e1192
    Info: /File[/etc/sysconfig/authconfig]: Filebucketed /etc/sysconfig/authconfig to puppet with sum b8bd9dc8120ab4be6b41ac5bb57e1192
    Notice: /File[/etc/sysconfig/authconfig]/content: content changed '{md5}b8bd9dc8120ab4be6b41ac5bb57e1192' to '{md5}f1cf038ce9c007f9eefe3b83fb674584'
    Info: /File[/etc/sysconfig/authconfig]: Scheduling refresh of Exec[/usr/sbin/authconfig --updateall]
    Notice: /Stage[main]/Ldap/Exec[/usr/sbin/authconfig --updateall]: Triggered 'refresh' from 1 events
    Notice: Finished catalog run in 6.17 seconds
    [root@rhel-server ~]#


    So it seems no matter the order I have on the Puppetmaster for the authconfig-file, authconfig keeps rewriting it. This has in effect that every Puppet run (30 minutes) Puppet replaces the file and then authconfig changes the order in that file.



    How can I solve this issue?










    share|improve this question
















    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      4












      4








      4







      I have been using this LDAP module for a long time in my Puppet environment. The module uploads these files to the RHEL-servers:



      /etc/openldap/openldap.conf
      /etc/pam_ldap.conf
      /etc/nsswitch.conf
      /etc/sssd/sssd.conf
      /etc/sysconfig/authconfig
      /etc/sudo-ldap.conf
      /etc/openldap/cacerts/cacert.pem


      After running this, it will run authconfig --updateall and the LDAP will start working. This worked perfectly fine on the RH6.2-servers we have, but RH6.4 gives an issue, while the only difference is an additional FORCELEGACY=YES line.



      What can I do about this behaviour? The logical thing seemed to upload the /etc/sysconfig/authconfig file generated by /sbin/authconfig to the Puppetmaster, but it keeps rewriting the /etc/sysconfig/authconfig and all it does it change the order:



      [root@rhel-server ~]# puppet agent --test
      Info: Retrieving plugin
      Info: Loading facts in /var/lib/puppet/lib/facter/extra_info.rb
      Info: Caching catalog for rhel-server.domain.local
      Info: Applying configuration version '1379669638'
      Notice: /File[/etc/sysconfig/authconfig]/content:
      --- /etc/sysconfig/authconfig 2013-09-20 13:18:24.165303819 +0200
      +++ /tmp/puppet-file20130920-17419-lgtzfu-0 2013-09-20 13:44:05.388741384 +0200
      @@ -5,22 +5,22 @@
      USESSSDAUTH=no
      USESHADOW=yes
      USEWINBIND=no
      +USESSSD=no
      USEDB=no
      FORCELEGACY=yes
      USEFPRINTD=yes
      -USEHESIOD=no
      FORCESMARTCARD=no
      -PASSWDALGORITHM=md5
      USELDAPAUTH=yes
      +USEPASSWDQC=no
      IPAV2NONTP=no
      -USELDAP=yes
      +USELOCAUTHORIZE=yes
      USECRACKLIB=yes
      USEIPAV2=no
      USEWINBINDAUTH=no
      USESMARTCARD=no
      -USELOCAUTHORIZE=yes
      +USELDAP=yes
      USENIS=no
      USEKERBEROS=no
      USESYSNETAUTH=no
      -USESSSD=no
      -USEPASSWDQC=no
      +PASSWDALGORITHM=md5
      +USEHESIOD=no

      Info: FileBucket got a duplicate file {md5}b8bd9dc8120ab4be6b41ac5bb57e1192
      Info: /File[/etc/sysconfig/authconfig]: Filebucketed /etc/sysconfig/authconfig to puppet with sum b8bd9dc8120ab4be6b41ac5bb57e1192
      Notice: /File[/etc/sysconfig/authconfig]/content: content changed '{md5}b8bd9dc8120ab4be6b41ac5bb57e1192' to '{md5}f1cf038ce9c007f9eefe3b83fb674584'
      Info: /File[/etc/sysconfig/authconfig]: Scheduling refresh of Exec[/usr/sbin/authconfig --updateall]
      Notice: /Stage[main]/Ldap/Exec[/usr/sbin/authconfig --updateall]: Triggered 'refresh' from 1 events
      Notice: Finished catalog run in 6.17 seconds
      [root@rhel-server ~]#


      So it seems no matter the order I have on the Puppetmaster for the authconfig-file, authconfig keeps rewriting it. This has in effect that every Puppet run (30 minutes) Puppet replaces the file and then authconfig changes the order in that file.



      How can I solve this issue?










      share|improve this question















      I have been using this LDAP module for a long time in my Puppet environment. The module uploads these files to the RHEL-servers:



      /etc/openldap/openldap.conf
      /etc/pam_ldap.conf
      /etc/nsswitch.conf
      /etc/sssd/sssd.conf
      /etc/sysconfig/authconfig
      /etc/sudo-ldap.conf
      /etc/openldap/cacerts/cacert.pem


      After running this, it will run authconfig --updateall and the LDAP will start working. This worked perfectly fine on the RH6.2-servers we have, but RH6.4 gives an issue, while the only difference is an additional FORCELEGACY=YES line.



      What can I do about this behaviour? The logical thing seemed to upload the /etc/sysconfig/authconfig file generated by /sbin/authconfig to the Puppetmaster, but it keeps rewriting the /etc/sysconfig/authconfig and all it does it change the order:



      [root@rhel-server ~]# puppet agent --test
      Info: Retrieving plugin
      Info: Loading facts in /var/lib/puppet/lib/facter/extra_info.rb
      Info: Caching catalog for rhel-server.domain.local
      Info: Applying configuration version '1379669638'
      Notice: /File[/etc/sysconfig/authconfig]/content:
      --- /etc/sysconfig/authconfig 2013-09-20 13:18:24.165303819 +0200
      +++ /tmp/puppet-file20130920-17419-lgtzfu-0 2013-09-20 13:44:05.388741384 +0200
      @@ -5,22 +5,22 @@
      USESSSDAUTH=no
      USESHADOW=yes
      USEWINBIND=no
      +USESSSD=no
      USEDB=no
      FORCELEGACY=yes
      USEFPRINTD=yes
      -USEHESIOD=no
      FORCESMARTCARD=no
      -PASSWDALGORITHM=md5
      USELDAPAUTH=yes
      +USEPASSWDQC=no
      IPAV2NONTP=no
      -USELDAP=yes
      +USELOCAUTHORIZE=yes
      USECRACKLIB=yes
      USEIPAV2=no
      USEWINBINDAUTH=no
      USESMARTCARD=no
      -USELOCAUTHORIZE=yes
      +USELDAP=yes
      USENIS=no
      USEKERBEROS=no
      USESYSNETAUTH=no
      -USESSSD=no
      -USEPASSWDQC=no
      +PASSWDALGORITHM=md5
      +USEHESIOD=no

      Info: FileBucket got a duplicate file {md5}b8bd9dc8120ab4be6b41ac5bb57e1192
      Info: /File[/etc/sysconfig/authconfig]: Filebucketed /etc/sysconfig/authconfig to puppet with sum b8bd9dc8120ab4be6b41ac5bb57e1192
      Notice: /File[/etc/sysconfig/authconfig]/content: content changed '{md5}b8bd9dc8120ab4be6b41ac5bb57e1192' to '{md5}f1cf038ce9c007f9eefe3b83fb674584'
      Info: /File[/etc/sysconfig/authconfig]: Scheduling refresh of Exec[/usr/sbin/authconfig --updateall]
      Notice: /Stage[main]/Ldap/Exec[/usr/sbin/authconfig --updateall]: Triggered 'refresh' from 1 events
      Notice: Finished catalog run in 6.17 seconds
      [root@rhel-server ~]#


      So it seems no matter the order I have on the Puppetmaster for the authconfig-file, authconfig keeps rewriting it. This has in effect that every Puppet run (30 minutes) Puppet replaces the file and then authconfig changes the order in that file.



      How can I solve this issue?







      rhel puppet






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 20 '13 at 12:41









      Joseph R.

      27.9k373113




      27.9k373113










      asked Sep 20 '13 at 11:48









      ujjain

      2181514




      2181514





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Puppet by nature does not guarantee execution order. If you need to change this, use a before or require statement.



          file {'foo':
          ensure => present,
          }

          file {'bar':
          ensure => present,
          require => File['foo'],
          }


          http://docs.puppetlabs.com/learning/ordering.html






          share|improve this answer





























            0














            Request your puppet invocation generate that file with an authconfig, and THEN sort that file to a chk file which puppet THEN checks the sum on. If the order is the only different, the sorted generated file will not change in sum.






            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f91587%2fauthconfig-contiously-rewriting-the-etc-sysconfig-authconfig-file-messing-up-p%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Puppet by nature does not guarantee execution order. If you need to change this, use a before or require statement.



              file {'foo':
              ensure => present,
              }

              file {'bar':
              ensure => present,
              require => File['foo'],
              }


              http://docs.puppetlabs.com/learning/ordering.html






              share|improve this answer


























                0














                Puppet by nature does not guarantee execution order. If you need to change this, use a before or require statement.



                file {'foo':
                ensure => present,
                }

                file {'bar':
                ensure => present,
                require => File['foo'],
                }


                http://docs.puppetlabs.com/learning/ordering.html






                share|improve this answer
























                  0












                  0








                  0






                  Puppet by nature does not guarantee execution order. If you need to change this, use a before or require statement.



                  file {'foo':
                  ensure => present,
                  }

                  file {'bar':
                  ensure => present,
                  require => File['foo'],
                  }


                  http://docs.puppetlabs.com/learning/ordering.html






                  share|improve this answer












                  Puppet by nature does not guarantee execution order. If you need to change this, use a before or require statement.



                  file {'foo':
                  ensure => present,
                  }

                  file {'bar':
                  ensure => present,
                  require => File['foo'],
                  }


                  http://docs.puppetlabs.com/learning/ordering.html







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 28 '14 at 22:00









                  spuder

                  6,4412568106




                  6,4412568106

























                      0














                      Request your puppet invocation generate that file with an authconfig, and THEN sort that file to a chk file which puppet THEN checks the sum on. If the order is the only different, the sorted generated file will not change in sum.






                      share|improve this answer


























                        0














                        Request your puppet invocation generate that file with an authconfig, and THEN sort that file to a chk file which puppet THEN checks the sum on. If the order is the only different, the sorted generated file will not change in sum.






                        share|improve this answer
























                          0












                          0








                          0






                          Request your puppet invocation generate that file with an authconfig, and THEN sort that file to a chk file which puppet THEN checks the sum on. If the order is the only different, the sorted generated file will not change in sum.






                          share|improve this answer












                          Request your puppet invocation generate that file with an authconfig, and THEN sort that file to a chk file which puppet THEN checks the sum on. If the order is the only different, the sorted generated file will not change in sum.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 22 '15 at 21:00









                          user2066657

                          403210




                          403210






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f91587%2fauthconfig-contiously-rewriting-the-etc-sysconfig-authconfig-file-messing-up-p%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Accessing regular linux commands in Huawei's Dopra Linux

                              Can't connect RFCOMM socket: Host is down

                              Kernel panic - not syncing: Fatal Exception in Interrupt