Pulling certain directories in Mercurial? -
let me try make simple follow. i'm deploying vagrant developers , i'll using puppet provision machines. let's have 2 sets of machines, 1 has apache/mysql5 server , apache/mongodb server. use puppet manage different components, not using centralized puppetmaster server.
with said, i'm serving 2 directories inside mercurial repository. in event need modify mysql, can have devs pull latest changes accordingly. issue i'm having is, how handle repository structure without having duplicate directory structure.
manifests
- different each machine, mysql
machine have directives install mysql
while mongodb
machine have own instructions mongodb
modules
- shared among every machine, required folders inside folder stored on each machine (i.e. modules/mongodb , modules/mysql).
if threw 1 big repository, don't want "apache+mysql" server download modules "apache+mongodb" modules. there way let's put manifests
directory particular repo , download appropriate folders modules
folder?
you can use subrepository functionnality of mercurial.
if understand correctly want, i'll following :
- one repository each various manifest
- one repository each various modules
- create "top level" repository each machine type contains various needed subrepositories above.
Comments
Post a Comment