python::umask has no effect on exec ressources
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 52/100
調査の方向性
Start in init.pp, focusing on the default Exec resource and the python::pyvenv resource shown in the reproduction. Run the test.pp example with puppet apply, then verify that the virtualenv files under /opt/testvenv receive the configured 0022 umask instead of 0077. Done means the observed permissions match the expected listing.
索引モデルが issue の本文から書いたものです。
説明
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 7.26.0
- Ruby: ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x86_64-linux]
- Distribution: RHEL9
- Module version: 7.0.0
How to reproduce (e.g Puppet code you use)
# cat test.pp
class {'python':
umask => '0022'
}
python::pyvenv {'/opt/testvenv':
ensure => 'present'
}
# umask
0077
# puppet apply test.pp
Notice: /Stage[main]/Main/Python::Pyvenv[/opt/testvenv]/File[/opt/testvenv]/ensure: created
Notice: /Stage[main]/Main/Python::Pyvenv[/opt/testvenv]/Exec[python_virtualenv_/opt/testvenv]/returns: executed successfully
Notice: Applied catalog in 7.63 seconds
What are you seeing
# ls -l /opt/testvenv
drwx------ 2 root root 181 Oct 24 13:30 bin
drwx------ 2 root root 6 Oct 24 13:30 include
drwx------ 3 root root 23 Oct 24 13:30 lib
lrwxrwxrwx 1 root root 3 Oct 24 13:30 lib64 -> lib
-rw------- 1 root root 425433 Oct 24 13:30 pip.log
-rw------- 1 root root 66 Oct 24 13:30 pyvenv.cfg
What behaviour did you expect instead
# ls -l /opt/testvenv/
total 452
drwxr-xr-x 2 root root 181 Oct 24 13:35 bin
drwxr-xr-x 2 root root 6 Oct 24 13:34 include
drwxr-xr-x 3 root root 23 Oct 24 13:34 lib
lrwxrwxrwx 1 root root 3 Oct 24 13:34 lib64 -> lib
-rw-r--r-- 1 root root 425433 Oct 24 13:35 pip.log
-rw-r--r-- 1 root root 66 Oct 24 13:34 pyvenv.cfg
Output log
Any additional information you'd like to impart
I think this would resolve the issue:
--- init.pp 2023-10-23 15:36:38.943250566 +0200
+++ init2.pp 2023-10-24 13:36:53.273864271 +0200
@@ -73,7 +73,7 @@
-> Class['python::config']
# Set default umask.
- exec { default:
+ Exec {
umask => $umask,
}
(According to https://www.puppet.com/docs/puppet/7/lang_defaults.html)
- 主要言語
- Ruby
- スター
- 196
- フォーク
- 371
- 平均マージ
- 5時間 54分
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voxpupuli/puppet-python のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
voxpupuli/puppet-python#759 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
voxpupuli/puppet-python#743 · コメント 1 件 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
voxpupuli/puppet-python#721 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
voxpupuli/puppet-python#711 · コメント 1 件 ·
-
Rework package management to allow composition of dependencies再び着手できるかも @smortex が 657 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
voxpupuli/puppet-python#668 · リアクション 2 件 · 担当者 1 名 ·
voxpupuli/puppet-python の issue をすべて見る
似ている issue
-
account: profile bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
metanorma/metanorma-standoc#1315 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
metanorma/metanorma-iso#1681 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信