Use 'ensure_packages" to prevent duplicate packages

Đang mở
#380 0 bình luận 4 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
devops

Hướng nghiên cứu

Start by locating the install class and its package declarations, then compare them with the provided ensure_packages example. Update the remaining package declarations in that class and verify that duplicate package declarations no longer produce the reported catalog error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

For install class, always use "ensure_packages" function to prevent duplicate package error -
"Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Package[python-dev] is already declared; "

Old
if $pythondev {
package { 'python-dev':
ensure => $dev_ensure,
name => $pythondev,
}
}

New
if $pythondev {
ensure_packages( 'python-dev', {
ensure => $dev_ensure,
name => $pythondev,
} )
}
etc

Ngôn ngữ chính
Ruby
Star
196
Fork
371
Merge trung bình
5 giờ 54 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voxpupuli/puppet-python

Tất cả issue của voxpupuli/puppet-python

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.