Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitOps: install_software.package_path isn't relative to lib/policies-name.policies.yml file #25867

Closed
marko-lisica opened this issue Jan 29, 2025 · 2 comments
Assignees
Labels
bug Something isn't working as documented #g-mdm MDM product group :incoming New issue in triage process. :product Product Design department (shows up on 🦢 Drafting board) ~released bug This bug was found in a stable release.

Comments

@marko-lisica
Copy link
Member

marko-lisica commented Jan 29, 2025

Fleet version: 4.62.0


💥  Actual behavior

We documented path that's not relative here.

Image

The path should be (because policies files should be in lib):

install_software:
  package_path: "./lib/linux-firefox.deb.package.yml"

🧑‍💻  Steps to reproduce

  1. Create {name}.policies.yml file with few policies
  2. Add install_software.package_path to one policy and make sure that package_path is relative

🕯️ More info (optional)

N/A

🛠️ To fix

Product designer: @marko-lisica

Make sure that paths used in policies (lib/policies-name.policies.yml) file is relative to that file.

@marko-lisica marko-lisica added :incoming New issue in triage process. :reproduce Involves documenting reproduction steps in the issue bug Something isn't working as documented #g-mdm MDM product group labels Jan 29, 2025
@georgekarrv georgekarrv removed the :reproduce Involves documenting reproduction steps in the issue label Jan 30, 2025
marko-lisica added a commit that referenced this issue Jan 30, 2025
Related to #25867 

Paths are relative. Fixed in 4.58.0.
@marko-lisica marko-lisica added the :product Product Design department (shows up on 🦢 Drafting board) label Jan 30, 2025
rachaelshaw pushed a commit that referenced this issue Jan 31, 2025
@lukeheath lukeheath added the ~released bug This bug was found in a stable release. label Jan 31, 2025
@marko-lisica
Copy link
Member Author

This was documentation bug. PR is merged: #25895.

@fleet-release
Copy link
Contributor

Paths in code like river's flow,
Fleet's harmony now does grow.
Docs reflect truth's glow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as documented #g-mdm MDM product group :incoming New issue in triage process. :product Product Design department (shows up on 🦢 Drafting board) ~released bug This bug was found in a stable release.
Projects
None yet
Development

No branches or pull requests

4 participants