Ask Your Question

Connect to Dropbox account

asked 2014-10-09 11:28:40 -0600

gCardinal gravatar image

updated 2014-10-10 15:26:20 -0600

I need Dropbox installed on a Windows Server 2008 machine I wanna to package as a base box for Vagrant. Problem is, the Dropbox folder once synced weights around 2GB, so I'd want to have it login only when the box get provisioned the first time.

I'm pretty new with Puppet and Windows being Windows, playing with software configuration is not easy, so I can't seem to find a way to get Puppet to log into Dropbox... I know there are modules, but they only seem to support Linux.

Edit: Rob made me realize I might not have been clear as to what my intent is. What I want to achieve is have Dropbox installed with the user's account when the machine is provisioned. I formulated my question this way because i figured having Dropbox installed and then connecting the user's account with Puppet would be easier, but if I can install Dropbox and connect the user with Puppet, I'd prefer that.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-10-10 15:04:54 -0600

updated 2014-10-13 17:15:42 -0600

What is the intent of what you are trying to accomplish?

You mention connecting to dropbox and then disconnecting dropbox, but Puppet is about the end state of what you want to do. If you are looking to copy some files over from your dropbox account, there are likely ways to do that without needing to sync the entire dropbox.

For what you are asking now, it seems as if you are trying to treat Puppet like a procedural language (do this, then do this) and it's more about the state you want to achieve. I'd suggest taking a look at - it's a fantastic article that helps really drive the difference between the two.

Update: Dropbox should be treated as a package to be installed on the boxes it is being deployed to. That can easily be done with the Chocolatey package provider module:

package {'dropbox':
  ensure => installed,
  provider => chocolatey,

But it could also be done with the built in provider. You would need to download it, specify the source and test it on a canary box first to get the proper name of the package - see more at puppet labs built in provider packaging tips.

For the user credentials being set by Puppet, that can also be done. You just need to know how they are stored with respect to Windows and apply the proper manifests to ensure that behavior. If the settings are a file, you can create a file template to put the credentials in. If it is in the registry, you would want to use the registry module to ensure the proper values are there for the user.

edit flag offensive delete link more


You're right, I wasn't very clear... I edited my question to clarify. My end goal is simply to have the user logged into his Dropbox in a machine where either Dropbox is installed, but not connected, or Dropbox simply isn't there and Puppet would install + log the user in.

gCardinal gravatar imagegCardinal ( 2014-10-10 15:27:43 -0600 )edit

Marked this as the answer. Sorry it took so long, but I didn't have time to work on this again until today and wanted to test it before marking it. Thanks for your help!

gCardinal gravatar imagegCardinal ( 2014-10-21 09:30:17 -0600 )edit

answered 2015-06-11 07:22:20 -0600

sinned gravatar image

updated 2015-06-11 07:24:36 -0600

Another option if you only would want to have the dropbox files available on the machine (also for all others finding this on google):

Set up a puppet file server somewhere, install dropbox there. You could do this on a puppetmaster which has the file server included, although, I personally wouldn't install dropbox in a production environment, let alone on a production server.

From there on, you can use puppet to sync whole directories recursively from the file server to the agent via a puppet:///-url. See this for details:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-10-09 11:28:40 -0600

Seen: 422 times

Last updated: Jun 11 '15