You would want:
have_ham:
seuss.ham:
- require:
- seuss: have_green_eggs
However, you are currently defining two states of a seuss
resource, which means that either a seuss.ham
or a seuss.green_eggs
called have_green_eggs
could fulfil that requirement.
If you don't want that, then you will have to define the states in separate files (e.g. seuss_ham.exists
and seuss_green_eggs.exists
).