Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Add a couple more grains - vpc and nvme #205

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

edhgoose
Copy link

@edhgoose edhgoose commented Mar 3, 2019

We are in the process of migrating from EC2 Classic to VPC. We've found a couple of small things have really helped us:

  1. Adding an is_vpc grain, so that we can easily tell whether this instance is or is not in a VPC
  2. Adding an is_nvme_disk grain so we can identify Nitro based instances which use /dev/nvme.. instead of /dev/x...

We're not massively wedded to the style I've built these grains in, and so if there are strong opinions on how this should be laid out, then we can happily modify them :)

We found the VPC one is available if you can get the metadata for the mac and then use that to parse the vpc, but adding is_vpc was so much easier :)

We are in the process of migrating from EC2 Classic to VPC. We've found a couple of small things have really helped us:

1. Adding an is_vpc grain, so that we can easily tell whether this instance is or is not in a VPC
2. Adding an `is_nvme_disk` grain so we can identify Nitro based instances which use /dev/nvme.. instead of /dev/x...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant