Skip to content

The Tumblr provider is used to interact with the many resources supported by tumblr.com. The provider needs to be configured with the proper credentials before it can be used.

License

rfiestas/terraform-provider-tumblr

Repository files navigation

terraform-provider-tumblr

Build Status codecov Scrutinizer code quality Go Report Card

GitHub release (latest SemVer) GitHub

A Terraform Custom Provider for tumblr.

Description

This is a custom terraform provider for managing common resources within the tumblr site platform, such as texts, photos, quotes etc.

Supported Resources

Currently, the following tumblr resources are supported (or partially supported) for configuration via terraform:

  • tumblr_post_text
  • tumblr_post_photo
  • tumblr_post_quote
  • tumblr_post_link
  • tumblr_post_chat
  • tumblr_post_audio
  • tumblr_post_video

Requirements

Usage

Install

go build -o ~/.terraform.d/plugins/terraform-provider-tumblr

Provider Configuration

The provider only requires some configuration settings. Get your secrets from your tumblr account. Use tumblr/settings to get the OAuth Consumer Key and OAuth Consumer Secret and then validate on oauth page

tumblr

provider "tumblr" {
  consumer_key      = "XXXXXXXXXXXXXXXXXXXXXX"
  consumer_secret   = "XXXXXXXXXXXXXXXXXXXXXX"
  user_token        = "XXXXXXXXXXXXXXXXXXXXXX"
  user_token_secret = "XXXXXXXXXXXXXXXXXXXXXX"
}

Alternatively you can use environment variables

export CONSUMER_KEY="XXXXXXXXXXXXXXXXXXXXXX"
export CONSUMER_SECRET="XXXXXXXXXXXXXXXXXXXXXX"
export USER_TOKEN="XXXXXXXXXXXXXXXXXXXXXX"
export USER_TOKEN_SECRET="XXXXXXXXXXXXXXXXXXXXXX"

Resource Configuration

For documentation on each supported resource, refer to the blog.

Contributing

Bug reports, suggestions, code additions/changes etc. are very welcome! When making code changes, please branch off of master and then raise a pull request so it can be reviewed and merged.

Running Acceptance Tests

In order to test the provider, you can run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note Make sure CONSUMER_KEY, CONSUMER_SECRET, USER_TOKEN and USER_TOKEN_SECRET variables are set.

Acceptance tests create real resources, set your testing blog setting the variable TestBlog on tumblr/schema_tumblr_post_test.go file.

$ make testacc

About

The Tumblr provider is used to interact with the many resources supported by tumblr.com. The provider needs to be configured with the proper credentials before it can be used.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published