Jira (PUP-9793) Users should be able to disable warnings on unresolved module dependencies at the command line.

4 views
Skip to first unread message

Trevor Vaughan (JIRA)

unread,
Jun 21, 2019, 1:26:03 PM6/21/19
to puppe...@googlegroups.com
Trevor Vaughan created an issue
 
Puppet / New Feature PUP-9793
Users should be able to disable warnings on unresolved module dependencies at the command line.
Issue Type: New Feature New Feature
Affects Versions: PUP 6.4.2
Assignee: Unassigned
Components: Catalog Application
Created: 2019/06/21 10:25 AM
Priority: Normal Normal
Reporter: Trevor Vaughan

When running puppet apply by hand, it is quite irritating to see 'unresolved dependency' warnings on modules for components that your system does not require and that you do not include deliberately.

I would like to be able to disable only this warning but retain all other warnings so that they are not lost in the noise.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Trevor Vaughan (JIRA)

unread,
Jun 21, 2019, 1:40:03 PM6/21/19
to puppe...@googlegroups.com
Trevor Vaughan updated an issue
Change By: Trevor Vaughan
When running {{puppet}} apply by hand, it is quite irritating to see 'unresolved dependency' warnings on modules for components that your system does not require and that you do not include deliberately.

I would like to be able to disable only this warning but retain all other warnings so that they are not lost in the noise.

  Example output with working code (note the Warning that's lost in the mess of uresolved deps):
{code:java}
puppet apply /tmp/apply_manifest.pp.XopaFK
Warning: ModuleLoader: module 'simp_options' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'simplib' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'compliance_markup' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                 
Warning: ModuleLoader: module 'simp' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'pupmod' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'aide' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'auditd' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'clamav' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'deferred_resources' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                
Warning: ModuleLoader: module 'ntpd' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'pam' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'resolv' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'simp_rsyslog' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'tuned' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'useradd' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'selinux' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'logrotate' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'postfix' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'rsyslog' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'at' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'concat' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'cron' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: Defining "data_provider": "hiera" in metadata.json is deprecated. A 'hiera.yaml' file should be used instead
   (file: /etc/puppetlabs/code/environments/production/modules/deferred_resources/metadata.json)                    
Warning: ModuleLoader: module 'incron' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'issue' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'simp_banners' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'named' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'tlog' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'polkit' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'nsswitch' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'sssd' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'pki' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'systemd' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'ssh' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'iptables' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'tcpwrappers' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'swap' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'timezone' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'fips' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'vox_selinux' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'rkhunter' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'motd' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'rsync' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'stunnel' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'oddjob' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Warning: ModuleLoader: module 'kmod' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\n   (file & line not available)                    
Notice: Compiled catalog for el7.int.localdomain in environment production in 5.69 seconds                    
Notice: /Stage[main]/Auditd::Config/File[/etc/audit/audit.rules.prev]/ensure: removed
Notice: /Stage[main]/Auditd::Service/Service[auditd]: Triggered 'refresh' from 1 event
Notice: Applied catalog in 41.89 seconds {code}

Trevor Vaughan (JIRA)

unread,
Jun 21, 2019, 1:44:03 PM6/21/19
to puppe...@googlegroups.com

 

As rationale for why this is relevant, I'm testing CentOS systems and want my module set to stay minimal. The following dependencies do not apply to my system:
{code:java}
│ │ └─┬ puppetlabs-postgresql (v5.12.1)
│ │   └── UNMET DEPENDENCY puppetlabs-apt (>= 2.0.0 < 7.0.0)
│ ├─┬ saz-timezone (v5.1.1)
│ │ └── UNMET DEPENDENCY stm-debconf (>= 2.0.0 < 3.0.0)
{code}
Reply all
Reply to author
Forward
0 new messages