Comments (3)
@geerlingguy I think a good compromise might be to explicitly put 'version: latest' in the examples and explain in the text that production processes should be locked into specific versions to avoid accidental breakage.
from ansible-for-kubernetes.
@aharden Agreed. I think at a minimum I'll do that, and put a 'Warning' aside. Thanks for the suggestion!
from ansible-for-kubernetes.
I have gone both ways on this, for the book examples:
- On the one hand, as you mention, for production use, you should always use specific versions (tags), ideally immutable versions (though you can't get that with Galaxy roles, only collections today).
- On the other hand, it has two downsides specific to the book:
- It makes maintenance more difficult, as in addition to updating about 15 other parts of the book every few months, I'll need to spend a few hours updating all the role versions every time I update the book.
- This book's repo actually has a number of end-to-end functional tests for my roles that I might not cover in the role's repo CI itself (whether that's a flaw in my test methodology or not, we can debate elsewhere ;). So if I keep them on 'latest', I can find flaws (and avoid bumping into deprecated usages after new Ansible releases) more quickly and easily through the repo's CI builds.
That said, it would be kind of nice if Ansible let me say 'override versions and use latest' using the ansible-galaxy
cli. I could also include two versions of the requirements.yml
files, one with and one without (for CI), but that still requires more maintenance.
from ansible-for-kubernetes.
Related Issues (20)
- Slight changes required when installing Ansible inside Bash on Ubuntu HOT 1
- `minikube service` prevents Ansible playbook from showing URL and finishing HOT 4
- Container login should be in pre_tasks not post_tasks
- Ansible is being run in a world writable directory... ignoring it as an ansible.cfg source HOT 4
- test-deployment.yml fails as pip is unavailable on remote host HOT 2
- Warning: Using VirtualBox, WSL2 and Vagrant together causes BSOD on Windows 11
- Love your work - I found this method a bit more elegant with ALB's HOT 2
- [cluster-local-vms] Vagrant up fails on MacOS with Oracle Virtual Box v6.1
- Molecule Kind test is failing due to non-use of FQCNs
- Open Source Ansible for Kubernetes' manuscript
- Leanpub link is broken HOT 3
- [section request] Ansible vs. Helm vs. Operators
- Chapter 3 - Ansible manages containers
- Chapter 3 - Ansible manages containers
- AWX Operator is now on OperatorHub.io
- kubeadm token create --print-join-command fails silently HOT 1
- Ansible now has a certified Terraform collection
- Ansible 101 questions HOT 1
- Dead link on page 9 (minikube)
- Chapter 3: "args warn no" deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-for-kubernetes.