Sofer Athlan-Guyot Just a general comment, if you're using composite name vars, then you'll want to implement the title_patterns method as is done for the java_ks module: https://github.com/puppetlabs/puppetlabs-java_ks/blob/35940b43841255a481d8faa64e42bf207127806a/lib/puppet/type/java_ks.rb#L184-L209. Then you can define your resource titles like project_less-domain and puppet will use the title_patterns to decompose the title and set the respective parameters.
It also looks like there's some overlap between this and PUP-7497