<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>33396</bug_id>
          
          <creation_ts>2017-04-19 20:09:55 +0300</creation_ts>
          <short_desc>FR: file triggers</short_desc>
          <delta_ts>2022-09-22 22:44:55 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>puppet</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>3aHyga</cc>
    
    <cc>admsasha</cc>
    
    <cc>cas</cc>
    
    <cc>majioa</cc>
    
    <cc>mike</cc>
    
    <cc>nbr</cc>
    
    <cc>obirvalger</cc>
    
    <cc>pav</cc>
    
    <cc>rider</cc>
    
    <cc>thatman</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163349</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-04-19 20:09:55 +0300</bug_when>
    <thetext>puppet agent could invoke special file triggers when important files are modified.

For example, I&apos;ve described one case like this in a manifest:

    file {
      &quot;/etc/resolv.conf&quot;:
        ensure  =&gt; present,
        content =&gt; template(&apos;apipkg/dnsmasq/resolv.conf.erb&apos;),
        notify =&gt; Exec[&apos;update_chrooted&apos;]
    }
    exec { &apos;update_chrooted&apos;:
      command     =&gt; &apos;update_chrooted all&apos;,
      refreshonly =&gt; true,
    }

puppet agent could have had built-in triggers for such files. Perhaps, invoking the triggers from /usr/lib/rpm/*.filetrigger would also make sense.

The tricky thing is to do this not very often and not very late: after a group of files is modified, but before any other action (so that there is no attempt to use the modified files).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>215194</commentid>
    <comment_count>1</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2022-09-22 22:44:55 +0300</bug_when>
    <thetext>А можно ли на примере продемонстрировать функциональность?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>