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

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

    <bug>
          <bug_id>60264</bug_id>
          
          <creation_ts>2026-08-24 18:40:32 +0300</creation_ts>
          <short_desc>Кривая сборка модуля</short_desc>
          <delta_ts>2026-08-24 18:40:32 +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-theforeman-foreman</component>
          <version>unstable</version>
          <rep_platform>x86_64</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>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladislav Glinkin">glinkinvd</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>admsasha</cc>
    
    <cc>cas</cc>
    
    <cc>majioa</cc>
    
    <cc>mike</cc>
    
    <cc>nbr</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>293133</commentid>
    <comment_count>0</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2026-08-24 18:40:32 +0300</bug_when>
    <thetext>Версия пакета: puppet-theforeman-foreman-22.1.2-alt1

https://help.puppet.com/core/current/Content/PuppetCore/module_structure.htm
https://help.puppet.com/core/current/Content/PuppetCore/modules_publishing_naming.htm

&quot;Your module has two names: a short name, like &quot;mysql&quot;, and a long name that includes your Forge username, like &quot;puppetlabs-mysql&quot;. When you upload your module to the Forge, use the module&apos;s long name.

Your module&apos;s short name is the same as that module&apos;s directory on your disk. This name must consist of letters, numbers, and underscores only; it can&apos;t contain dashes or periods.&quot;

Шаги воспроизведения:
1) # apt-get install puppet puppet-puppetserver-foreman
2) # puppet module list

Фактический результат:
```
[root@foreman-test ~]# puppet module list  
/usr/lib/puppet-modules (no modules installed)
```

Дополнительно:
Давайте придерживаться правил upstream&apos;а.
```
[root@foreman-test ~]# ln -s /usr/lib/puppet-modules/theforeman-foreman /usr/lib/puppet-modules/foreman  
[root@foreman-test ~]# puppet module list  
Warning: Missing dependency &apos;puppet-extlib&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppet-extlib&apos; (&gt;= 3.0.0 &lt; 7.0.0)  
Warning: Missing dependency &apos;puppet-redis&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppet-redis&apos; (&gt;= 5.0.0 &lt; 9.0.0)  
Warning: Missing dependency &apos;puppet-systemd&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppet-systemd&apos; (&gt;= 3.1.0 &lt; 4.0.0)  
Warning: Missing dependency &apos;puppetlabs-apache&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppetlabs-apache&apos; (&gt;= 8.0.0 &lt; 9.0.0)  
Warning: Missing dependency &apos;puppetlabs-apt&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppetlabs-apt&apos; (&gt;= 2.0.0 &lt; 10.0.0)  
Warning: Missing dependency &apos;puppetlabs-concat&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppetlabs-concat&apos; (&gt;= 1.0.0 &lt; 8.0.0)  
Warning: Missing dependency &apos;puppetlabs-postgresql&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppetlabs-postgresql&apos; (&gt;= 6.5.0 &lt; 9.0.0)  
Warning: Missing dependency &apos;puppetlabs-stdlib&apos;:  
 &apos;theforeman-foreman&apos; (v22.1.2) requires &apos;puppetlabs-stdlib&apos; (&gt;= 4.25.0 &lt; 9.0.0)  
/usr/lib/puppet-modules  
└── theforeman-foreman (v22.1.2)
```

Необходимо переопределить макрос в .spec файле:
https://git.altlinux.org/gears/p/puppet-theforeman-foreman.git?p=puppet-theforeman-foreman.git;a=blob;f=puppet-theforeman-foreman.spec;h=1a3ec11fd311154937af9016efe07639ad43928c;hb=3d7d9839ad4c839b52a6502eb081e50b5dd18e52#l2

```
%define        pkgname theforeman-foreman -&gt; %define        pkgname foreman
```

Либо под эти цели выделить отдельный макрос.

Как следствие, при работе в связке puppet + foreman:
```
# cat /var/log/puppetserver/puppetserver.log
...
2026-08-24T18:18:34.202+03:00 WARN  [qtp1073235993-51] [puppetserver] Puppet No report named &apos;foreman&apos;
...
```

настройка `reports = foreman` просто не воспринимается.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>