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

add compile option compose-node-name #933

Merged
merged 2 commits into from
Feb 3, 2023
Merged

add compile option compose-node-name #933

merged 2 commits into from
Feb 3, 2023

Conversation

gburiola
Copy link
Contributor

Fixes #932

INVENTORY USED FOR TESTING

$ tree inventory/targets
inventory/targets
├── prod
│   ├── finance.yaml
│   └── hr.yaml
└── test
    ├── finance.yaml
    └── hr.yaml

COMPILED WITHOUT NEW FLAG

$ ./kap.sh compile
Rendered inventory (0.07s)
Compiled test.finance (0.00s)
Compiled prod.finance (0.00s)
Compiled test.hr (0.00s)
Compiled prod.hr (0.00s)

$ tree compiled
compiled
├── prod.finance
│   └── README.md
├── prod.hr
│   └── README.md
├── test.finance
│   └── README.md
└── test.hr
    └── README.md

COMPILED WITH NEW FLAG

$ ./kap.sh compile --compose-node-name
Rendered inventory (0.07s)
Compiled test.hr (0.00s)
Compiled prod.finance (0.00s)
Compiled prod.hr (0.00s)
Compiled test.finance (0.00s)


$ tree compiled
compiled
├── prod
│   ├── finance
│   │   └── README.md
│   └── hr
│       └── README.md
└── test
    ├── finance
    │   └── README.md
    └── hr
        └── README.md

Copy link
Contributor

@uberspot uberspot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although we should also updated docs/README here about this new capability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create same subfolder structure from inventory folder in compiled folder
2 participants